c12s-kubespray/roles/upgrade/post-upgrade/tasks/main.yml
2017-07-03 15:30:21 +02:00

7 lines
285 B
YAML

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