From 768549a5d83f4322e547fff1bb38f3d1804b2acf Mon Sep 17 00:00:00 2001 From: A Holt Date: Wed, 4 Nov 2020 18:01:49 -0500 Subject: [PATCH] Clarify syntax for passing JSON list of vars to Ansible --- runrole | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runrole b/runrole index 58dd8e9a1..326adf4c2 100755 --- a/runrole +++ b/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