Co-authored-by: Matt Clay <matt@mystile.com> Co-authored-by: Matt Davis <mrd@redhat.com> Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
34 lines
564 B
Bash
Executable File
34 lines
564 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -ux
|
|
|
|
cleanup() {
|
|
unlink normal/library/_symlink.py
|
|
}
|
|
|
|
pushd normal/library
|
|
ln -s _underscore.py _symlink.py
|
|
popd
|
|
|
|
trap 'cleanup' EXIT
|
|
|
|
# check normal execution
|
|
for myplay in normal/*.yml
|
|
do
|
|
ansible-playbook "${myplay}" -i ../../inventory -vvv "$@"
|
|
if test $? != 0 ; then
|
|
echo "### Failed to run ${myplay} normally"
|
|
exit 1
|
|
fi
|
|
done
|
|
|
|
# check overrides
|
|
for myplay in override/*.yml
|
|
do
|
|
ansible-playbook "${myplay}" -i ../../inventory -vvv "$@"
|
|
if test $? != 0 ; then
|
|
echo "### Failed to run ${myplay} override"
|
|
exit 1
|
|
fi
|
|
done
|