mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
25 lines
431 B
Bash
25 lines
431 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
set -ux
|
||
|
|
||
|
|
||
|
# 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
|