File tree Expand file tree Collapse file tree 2 files changed +11
-9
lines changed
kubetest2-tf/data/k8s-ansible
roles/install-monitoring/tasks Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 11---
2+ - name : Ensure kubernetes.core collection is installed
3+ hosts : masters
4+ gather_facts : no
5+ tasks :
6+ - name : Install required Ansible collection
7+ ansible.builtin.command :
8+ cmd : ansible-galaxy collection install kubernetes.core
9+ changed_when : false
10+ delegate_to : " {{ groups['masters'][0] }}"
11+
212- name : Deploy kube-prometheus-stack to Kubernetes
3- hosts : { groups[' masters'][0] }}
13+ hosts : masters
414 become : yes
515 roles :
616 - install-monitoring
Original file line number Diff line number Diff line change 33 ansible.builtin.command : kubectl create namespace {{ helm_namespace }}
44 ignore_errors : yes # Ignore error if namespace already exists
55
6- - name : Ensure kubernetes.core collection is installed
7- gather_facts : no
8- tasks :
9- - name : Install required Ansible collection
10- ansible.builtin.command :
11- cmd : ansible-galaxy collection install kubernetes.core
12- changed_when : false
13-
146- name : Ensure Helm repository is added
157 kubernetes.core.helm_repository :
168 name : " {{ helm_repo_name }}"
You can’t perform that action at this time.
0 commit comments