From 3782573ede21e05b5b99c251f9b0825b9e804a9a Mon Sep 17 00:00:00 2001 From: emiran-orange <71817149+emiran-orange@users.noreply.github.com> Date: Tue, 5 Apr 2022 18:45:38 +0200 Subject: [PATCH] Single quotes are missing in jsonpath argument of kubectl get node (#8683) --- roles/upgrade/pre-upgrade/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/upgrade/pre-upgrade/tasks/main.yml b/roles/upgrade/pre-upgrade/tasks/main.yml index 98e3c3deb..50c652872 100644 --- a/roles/upgrade/pre-upgrade/tasks/main.yml +++ b/roles/upgrade/pre-upgrade/tasks/main.yml @@ -19,7 +19,7 @@ - name: See if node is in ready state command: > {{ 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 delegate_to: "{{ groups['kube_control_plane'][0] }}" failed_when: false