Add --check test.

This commit is contained in:
Jeff Geerling 2015-01-09 23:43:17 -06:00
parent 17a99089ab
commit e5e6ece01a

View file

@ -30,5 +30,12 @@ script:
&& (echo 'Idempotence test: pass' && exit 0)
|| (echo 'Idempotence test: fail' && exit 1)
# Run the role/playbook a third time, in --check mode.
- >
ansible-playbook -i tests/inventory tests/$SITE --connection=local --check --sudo
| grep -q 'changed=0.*failed=0'
&& (echo 'Check mode: pass' && exit 0)
|| (echo 'Check mode: fail' && exit 1)
# Request a page via Apache, to make sure Apache is running and responds.
- "curl http://localhost/"