From 92bb185c9c5fb7bbd50b98911aa1af5d205baf46 Mon Sep 17 00:00:00 2001 From: Divinii <37466196+Divinii@users.noreply.github.com> Date: Sun, 22 Jan 2023 22:53:09 +0100 Subject: [PATCH] Only set kubeadm join command to play_hosts It is not needed to set the fact for the whole inventory, only play_hosts. --- tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index 3fa409a..8f5e68e 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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'