2018-01-29 20:47:13 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -ux
|
2019-01-09 23:31:14 +00:00
|
|
|
ansible-playbook -i inventory -e @../../integration_config.yml "$@" play_level.yml| tee out.txt | grep 'any_errors_fatal_play_level_post_fail'
|
2018-01-29 20:47:13 +00:00
|
|
|
res=$?
|
|
|
|
cat out.txt
|
|
|
|
if [ "${res}" -eq 0 ] ; then
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2019-01-09 23:31:14 +00:00
|
|
|
ansible-playbook -i inventory -e @../../integration_config.yml "$@" on_includes.yml | tee out.txt | grep 'any_errors_fatal_this_should_never_be_reached'
|
2018-01-29 20:47:13 +00:00
|
|
|
res=$?
|
|
|
|
cat out.txt
|
|
|
|
if [ "${res}" -eq 0 ] ; then
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
set -ux
|
|
|
|
|
2019-01-09 23:31:14 +00:00
|
|
|
ansible-playbook -i inventory -e @../../integration_config.yml "$@" always_block.yml | tee out.txt | grep 'any_errors_fatal_always_block_start'
|
2018-01-29 20:47:13 +00:00
|
|
|
res=$?
|
|
|
|
cat out.txt
|
|
|
|
exit $res
|