mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2025-01-03 00:30:18 +01:00
More testing with Travis.
This commit is contained in:
parent
e4f1b37bdd
commit
718edc6fa2
1 changed files with 2 additions and 5 deletions
|
@ -6,13 +6,10 @@
|
|||
#
|
||||
# @author Jeff Geerling, 2014
|
||||
|
||||
# Change directory up one level (into project root).
|
||||
cd ../
|
||||
|
||||
# Run playbook, and exit with 0 status if 'changed=0' found (good).
|
||||
pwd
|
||||
echo "ansible-playbook -i tests/inventory tests/$SITE --connection=local --sudo"
|
||||
ansible-playbook -i tests/inventory tests/$SITE --connection=local --sudo | grep -q 'changed=0' && exit 0
|
||||
ls
|
||||
ansible-playbook -i ../tests/inventory ../tests/$SITE --connection=local --sudo | grep -q 'changed=0' && exit 0
|
||||
|
||||
# Exit with a non-zero status if 'changed=0' was not found.
|
||||
exit 1
|
||||
|
|
Loading…
Reference in a new issue