From a8c5cd4407d8e9f7e3d79ab963cf7888c0f1bd59 Mon Sep 17 00:00:00 2001 From: Xan Manning Date: Sun, 28 Feb 2021 17:35:23 +0000 Subject: [PATCH] Bugfix, missing become on cluser token check --- tasks/validate/configuration/cluster-init.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks/validate/configuration/cluster-init.yml b/tasks/validate/configuration/cluster-init.yml index 5bcde64..8e8bc97 100644 --- a/tasks/validate/configuration/cluster-init.yml +++ b/tasks/validate/configuration/cluster-init.yml @@ -16,3 +16,4 @@ failed_when: - not k3s_check_cluster_token.stat.exists - not ansible_check_mode + become: "{{ k3s_become_for_kubectl | ternary(true, false, k3s_become_for_all) }}"