From 2124be557df786ce82893d09dd348441ced3167b Mon Sep 17 00:00:00 2001 From: Michael McCulloch Date: Mon, 5 Feb 2024 08:09:13 -0700 Subject: [PATCH] remove duplicate directive --- tasks/main.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 59d77a1..2e8fbcc 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -105,12 +105,6 @@ - inventory_hostname == item loop: "{{ groups['k8s_control_plane'] }}" -- name: Allow pods on control plane (if configured). - command: "kubectl taint nodes --all node-role.kubernetes.io/control-plane-" - when: - - kubernetes_allow_pods_on_control_plane | bool - - not kubernetes_init_stat.stat.exists - - name: Allow pods on control plane (if configured). command: "kubectl taint nodes {{ item.inventory_hostname_short }} node-role.kubernetes.io/control-plane-" register: taint_removed @@ -123,5 +117,5 @@ delay: 5 loop: "{{ groups['k8s_control_plane'] }}" when: - - join_ctrl_plane.changed + - kubernetes_allow_pods_on_control_plane | bool - inventory_hostname == groups['k8s_control_plane'][0]