2016-10-12 23:57:53 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -eux
|
|
|
|
|
|
|
|
ansible-playbook test_includes.yml -i ../../inventory "$@"
|
2021-03-03 22:11:09 +01:00
|
|
|
|
|
|
|
ansible-playbook inherit_notify.yml "$@"
|
2021-04-09 16:28:24 +02:00
|
|
|
|
|
|
|
echo "EXPECTED ERROR: Ensure we fail if using 'include' to include a playbook."
|
|
|
|
set +e
|
|
|
|
result="$(ansible-playbook -i ../../inventory include_on_playbook_should_fail.yml -v "$@" 2>&1)"
|
|
|
|
set -e
|
|
|
|
grep -q "ERROR! 'include' is not a valid attribute for a Play" <<< "$result"
|