mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-14 13:54:37 +03:00
Single quotes are missing in jsonpath argument of kubectl get node (#8683)
This commit is contained in:
@@ -19,7 +19,7 @@
|
|||||||
- name: See if node is in ready state
|
- name: See if node is in ready state
|
||||||
command: >
|
command: >
|
||||||
{{ kubectl }} get node {{ kube_override_hostname|default(inventory_hostname) }}
|
{{ kubectl }} get node {{ kube_override_hostname|default(inventory_hostname) }}
|
||||||
-o jsonpath={ range .status.conditions[?(@.type == "Ready")].status }{ @ }{ end }
|
-o jsonpath='{ range .status.conditions[?(@.type == "Ready")].status }{ @ }{ end }'
|
||||||
register: kubectl_node_ready
|
register: kubectl_node_ready
|
||||||
delegate_to: "{{ groups['kube_control_plane'][0] }}"
|
delegate_to: "{{ groups['kube_control_plane'][0] }}"
|
||||||
failed_when: false
|
failed_when: false
|
||||||
|
|||||||
Reference in New Issue
Block a user