Only set kubeadm join command to play_hosts

It is not needed to set the fact for the whole inventory, only play_hosts.
This commit is contained in:
Divinii 2023-01-22 22:53:09 +01:00 committed by GitHub
parent 4a4c88b6b8
commit 92bb185c9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,7 +53,7 @@
when: kubernetes_join_command_result.stdout is defined
delegate_to: "{{ item }}"
delegate_facts: true
with_items: "{{ groups['all'] }}"
with_items: "{{ play_hosts }}"
- include_tasks: node-setup.yml
when: kubernetes_role == 'node'