Avoid using delegate_to since it requires DNS in place
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Danny Bessems 2022-04-20 12:46:21 +02:00
parent f997876fd3
commit 2d8cc987f8

View File

@ -109,8 +109,7 @@
ansible.builtin.slurp:
src: /var/lib/rancher/k3s/server/token
register: k3s_token
run_once: true
delegate_to: ansible_play_hosts[0]
when: inventory_hostname == ansible_play_hosts[0]
- name: Install K3s binary (additional nodes)
ansible.builtin.shell: