mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-14 13:54:37 +03:00
Skip removing nodes if cluster is not set (#9430)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user