c12s-kubespray/roles/upgrade/post-upgrade/tasks/main.yml

6 lines
283 B
YAML
Raw Normal View History

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