Avoid using delegate_to since it requires DNS in place
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
f997876fd3
commit
2d8cc987f8
@ -109,8 +109,7 @@
|
|||||||
ansible.builtin.slurp:
|
ansible.builtin.slurp:
|
||||||
src: /var/lib/rancher/k3s/server/token
|
src: /var/lib/rancher/k3s/server/token
|
||||||
register: k3s_token
|
register: k3s_token
|
||||||
run_once: true
|
when: inventory_hostname == ansible_play_hosts[0]
|
||||||
delegate_to: ansible_play_hosts[0]
|
|
||||||
|
|
||||||
- name: Install K3s binary (additional nodes)
|
- name: Install K3s binary (additional nodes)
|
||||||
ansible.builtin.shell:
|
ansible.builtin.shell:
|
||||||
|
Loading…
Reference in New Issue
Block a user