mirror of
https://github.com/geerlingguy/ansible-role-kubernetes.git
synced 2025-05-05 01:16:20 +02:00
remove duplicate directive
This commit is contained in:
parent
5f52f7a337
commit
2124be557d
@ -105,12 +105,6 @@
|
|||||||
- inventory_hostname == item
|
- inventory_hostname == item
|
||||||
loop: "{{ groups['k8s_control_plane'] }}"
|
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).
|
- name: Allow pods on control plane (if configured).
|
||||||
command: "kubectl taint nodes {{ item.inventory_hostname_short }} node-role.kubernetes.io/control-plane-"
|
command: "kubectl taint nodes {{ item.inventory_hostname_short }} node-role.kubernetes.io/control-plane-"
|
||||||
register: taint_removed
|
register: taint_removed
|
||||||
@ -123,5 +117,5 @@
|
|||||||
delay: 5
|
delay: 5
|
||||||
loop: "{{ groups['k8s_control_plane'] }}"
|
loop: "{{ groups['k8s_control_plane'] }}"
|
||||||
when:
|
when:
|
||||||
- join_ctrl_plane.changed
|
- kubernetes_allow_pods_on_control_plane | bool
|
||||||
- inventory_hostname == groups['k8s_control_plane'][0]
|
- inventory_hostname == groups['k8s_control_plane'][0]
|
||||||
|
Loading…
Reference in New Issue
Block a user