From fd9a032839030a0ac1c9f1489eb61376f0779fd3 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Tue, 16 Jun 2020 00:14:49 +0200 Subject: add ch-equinox-ws to managment vlan --- common/utils.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/utils.sh') diff --git a/common/utils.sh b/common/utils.sh index bb14381e..d8e459a1 100644 --- a/common/utils.sh +++ b/common/utils.sh @@ -19,7 +19,7 @@ ansible_variable__get() { local _var_name="$1" local _hosts="$2" - local _result=$(env ANSIBLE_STDOUT_CALLBACK="json" ansible "$_hosts" -m debug -a "msg={{ $_var_name }}" | \ + local _result=$(env ANSIBLE_STDOUT_CALLBACK="json" ansible "$_hosts" -e vault_ansible_become_password="" -m debug -a "msg={{ $_var_name }}" | \ jq -r '.plays[].tasks[].hosts[] | select(.failed != true) | .msg' | sort | uniq) if [ $? -ne 0 ] || [ -z "$_result" ]; then print_error "failed to get value of variable '$_var_name' for host(s) '$_hosts'" -- cgit v1.2.3