summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/utils.sh2
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'"