Skip to content

Commit 328ea09

Browse files
committed
Download kubeconf for each cluster, not once for all
Instead of downloading only the kubeconf of the 1st cluster processed, download it for each cluster.
1 parent 532c76e commit 328ea09

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tasks/summary.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@
55
src: /etc/rancher/rke2/rke2.yaml
66
dest: "{{ rke2_download_kubeconf_path }}/{{ rke2_download_kubeconf_file_name }}"
77
flat: yes
8-
delegate_to: "{{ groups[rke2_servers_group_name].0 }}"
9-
run_once: true
108
when:
119
- rke2_download_kubeconf | bool
10+
- inventory_hostname == groups[rke2_servers_group_name].0
1211

1312
- name: Replace loopback IP by master server IP
1413
ansible.builtin.replace:

0 commit comments

Comments
 (0)