Skip to content

Commit f1464a2

Browse files
committed
Revert "streamline onto one host and aggregate tasks"
This reverts commit d7142dc.
1 parent 8bb1ca3 commit f1464a2

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed
Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
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

kubetest2-tf/data/k8s-ansible/roles/install-monitoring/tasks/main.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,6 @@
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 }}"

0 commit comments

Comments
 (0)