mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2025-01-03 00:30:18 +01:00
Add --check test.
This commit is contained in:
parent
17a99089ab
commit
e5e6ece01a
1 changed files with 7 additions and 0 deletions
|
@ -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/"
|
||||
|
|
Loading…
Reference in a new issue