diff --git a/playbook.yml b/playbook.yml index 5e2b104..f9ce187 100644 --- a/playbook.yml +++ b/playbook.yml @@ -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: