mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
271 B
Bash
14 lines
271 B
Bash
5 years ago
|
#!/usr/bin/env bash
|
||
|
|
||
|
set -eu
|
||
|
|
||
|
ansible-playbook playbook.yml "$@" > output.log 2>&1 || true
|
||
|
|
||
|
if grep "task should always execute" output.log >/dev/null; then
|
||
|
echo "Test passed (playbook failed with expected output, output not shown)."
|
||
|
exit 0
|
||
|
fi
|
||
|
|
||
|
cat output.log
|
||
|
exit 1
|