mirror of
https://github.com/geerlingguy/ansible-role-kubernetes.git
synced 2025-08-01 13:49:01 +02:00
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:
parent
4a4c88b6b8
commit
92bb185c9c
@ -53,7 +53,7 @@
|
|||||||
when: kubernetes_join_command_result.stdout is defined
|
when: kubernetes_join_command_result.stdout is defined
|
||||||
delegate_to: "{{ item }}"
|
delegate_to: "{{ item }}"
|
||||||
delegate_facts: true
|
delegate_facts: true
|
||||||
with_items: "{{ groups['all'] }}"
|
with_items: "{{ play_hosts }}"
|
||||||
|
|
||||||
- include_tasks: node-setup.yml
|
- include_tasks: node-setup.yml
|
||||||
when: kubernetes_role == 'node'
|
when: kubernetes_role == 'node'
|
||||||
|
Loading…
Reference in New Issue
Block a user