remove_node: rename role to galaxy naming convention (#13552)

This commit is contained in:
Max Gautier
2026-09-23 18:56:20 +00:00
committed by GitHub
parent 6f6b8b4d20
commit ef3ca1aa0e
5 changed files with 2 additions and 12 deletions
@@ -0,0 +1,13 @@
---
- name: Remove-node | Delete node
command: "{{ kubectl }} delete node {{ kube_override_hostname }}"
delegate_to: "{{ groups['kube_control_plane'] | first }}"
when:
- groups['kube_control_plane'] | length > 0
# ignore servers that are not nodes
- ('k8s_cluster' in group_names) and kube_override_hostname in nodes.stdout_lines
retries: "{{ delete_node_retries }}"
# Sometimes the api-server can have a short window of indisponibility when we delete a control plane node
delay: "{{ delete_node_delay_seconds }}"
register: result
until: result is not failed