blob: 0b66f6bf09304baa9cdff187deb3e1a9f69d9dcf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/usr/bin/env bash
set -eux
ansible-playbook playbook.yml "$@" > output.log 2>&1 || true
if grep "intentional syntax error" output.log >/dev/null; then
echo "Test passed (playbook failed with expected output, output not shown)."
exit 0
fi
cat output.log
exit 1
|