Only cordon Ready nodes

This commit is contained in:
Matthew Mosesohn
2017-03-27 13:28:37 +03:00
parent 5ed03ce7f0
commit 44d851d5bb
3 changed files with 17 additions and 3 deletions
@@ -3,3 +3,4 @@
- name: Uncordon node
command: "{{ bin_dir }}/kubectl uncordon {{ ansible_hostname }}"
delegate_to: "{{ groups['kube-master'][0] }}"
when: needs_cordoning|default(false)