c12s-kubespray/roles/remove-node/post-remove/tasks/main.yml
2019-05-02 14:24:21 -07:00

9 lines
247 B
YAML

---
- name: Delete node
command: "{{ bin_dir }}/kubectl delete node {{ item }}"
with_items:
- "{{ node.split(',') | default(groups['kube-node']) }}"
delegate_to: "{{ groups['kube-master']|first }}"
run_once: true
ignore_errors: yes