[remove-etcd-node] fix json path query
parent
9143810a4d
commit
5bc35002ba
|
@ -2,7 +2,7 @@
|
|||
- name: Lookup node IP in kubernetes
|
||||
command: >
|
||||
{{ kubectl }} get nodes {{ node }}
|
||||
-o jsonpath={range.status.addresses[?(@.type=="InternalIP")]}{.address}{"\n"}{end}
|
||||
-o jsonpath='{range .status.addresses[?(@.type=="InternalIP")]}{@.address}{"\n"}{end}'
|
||||
register: remove_node_ip
|
||||
when:
|
||||
- inventory_hostname in groups['etcd']
|
||||
|
|
Loading…
Reference in New Issue