1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-12 11:12:06 +00:00

Clarify syntax for passing JSON list of vars to Ansible

This commit is contained in:
A Holt 2020-11-04 18:01:49 -05:00 committed by GitHub
parent 54200a5535
commit 768549a5d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -74,7 +74,7 @@ else
export ANSIBLE_LOG_PATH="$CWD/iiab-debug.log"
fi
ARGS="$ARGS\"role_to_run\":\"$1\"}"
ARGS="$ARGS\"role_to_run\":\"$1\"}" # $1 works like \"$1\" if str validated
CMD="ansible-playbook -i $INVENTORY $PLAYBOOK --connection=local $ARGS"
echo -e "\e[1mbash will now run this, adding single quotes around the {...} curly braces:\e[0m\n\n$CMD\n"
ansible -m setup -i $INVENTORY localhost --connection=local | grep python