Uncodron Masters which have scheduling Enabled

This commit is contained in:
Abdelsalam Abbas
2017-06-27 22:11:44 +02:00
parent 6e7323e3e8
commit 5f75d4c099
2 changed files with 3 additions and 1 deletions

View File

@@ -3,4 +3,5 @@
- name: Uncordon node
command: "{{ bin_dir }}/kubectl uncordon {{ inventory_hostname }}"
delegate_to: "{{ groups['kube-master'][0] }}"
when: needs_cordoning|default(false)
when: (needs_cordoning|default(false)) and ( {%- if inventory_hostname in groups['kube-node'] -%} true {%- else -%} false {%- endif -%} )