diff options
author | Christian Pointner <equinox@spreadspace.org> | 2020-06-16 00:14:49 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2020-06-16 00:14:49 +0200 |
commit | fd9a032839030a0ac1c9f1489eb61376f0779fd3 (patch) | |
tree | 3835848d950529619f50558a5714743b5f4e537e /common | |
parent | less memory for ch-jump and ch-gw-lan (diff) |
add ch-equinox-ws to managment vlan
Diffstat (limited to 'common')
-rw-r--r-- | common/utils.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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'" |