fix syntax for no extra vars

pull/83388/head
s-hertel 6 months ago
parent 41a84cc1cf
commit dd7dc00e8c

@ -54,9 +54,12 @@ args=(
"-e any_errors_fatal=true run_once=true"
""
)
for arg in "${args[@]}"; do
if [ -z "$arg" ]; then
ansible-playbook -i inventory "$@" 83292.yml | tee out.txt
else
ansible-playbook -i inventory "$@" 83292.yml "$arg" | tee out.txt
fi
[ "$(grep -c 'SHOULD NOT HAPPEN' out.txt)" -eq 0 ]
[ "$(grep -c 'rescuedd' out.txt)" -eq 2 ]

Loading…
Cancel
Save