[remove-etcd-node] fix json path query
This commit is contained in:
parent
9143810a4d
commit
5bc35002ba
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
||||||
- name: Lookup node IP in kubernetes
|
- name: Lookup node IP in kubernetes
|
||||||
command: >
|
command: >
|
||||||
{{ kubectl }} get nodes {{ node }}
|
{{ 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
|
register: remove_node_ip
|
||||||
when:
|
when:
|
||||||
- inventory_hostname in groups['etcd']
|
- inventory_hostname in groups['etcd']
|
||||||
|
|
Loading…
Reference in a new issue