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:
parent
54200a5535
commit
768549a5d8
1 changed files with 1 additions and 1 deletions
2
runrole
2
runrole
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue