remove duplicate directive

This commit is contained in:
Michael McCulloch 2024-02-05 08:09:13 -07:00
parent 5f52f7a337
commit 2124be557d

View File

@ -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]