2016-12-10 02:44:52 +08:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Uncordon node
|
2017-05-27 05:47:25 +08:00
|
|
|
command: "{{ bin_dir }}/kubectl uncordon {{ inventory_hostname }}"
|
2016-12-10 02:44:52 +08:00
|
|
|
delegate_to: "{{ groups['kube-master'][0] }}"
|
2017-06-28 04:11:44 +08:00
|
|
|
when: (needs_cordoning|default(false)) and ( {%- if inventory_hostname in groups['kube-node'] -%} true {%- else -%} false {%- endif -%} )
|
|
|
|
|