kubespray/roles/remove-node/post-remove/tasks/main.yml

6 lines
168 B
YAML

---
- name: Delete node
command: "{{ bin_dir }}/kubectl delete node {{ inventory_hostname }}"
delegate_to: "{{ groups['kube-master']|first }}"
ignore_errors: yes