Skip removing nodes if cluster is not set (#9430)

This commit is contained in:
Ho Kim
2023-01-03 22:03:32 +09:00
committed by GitHub
parent 8ca0bfffe0
commit 4bc5e8d912
3 changed files with 12 additions and 4 deletions

View File

@@ -5,6 +5,7 @@
-o jsonpath='{range .status.addresses[?(@.type=="InternalIP")]}{@.address}{"\n"}{end}'
register: remove_node_ip
when:
- groups['kube_control_plane'] | length > 0
- inventory_hostname in groups['etcd']
- ip is not defined
- access_ip is not defined