File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -19,10 +19,10 @@ script:
19
19
# Basic role syntax check
20
20
- ansible-playbook tests/test.yml -i tests/inventory --syntax-check
21
21
# Run the role with ansible-playbook.
22
- - ansible-playbook tests/test.yml -i tests/inventory --connection=local --sudo
22
+ - ansible-playbook tests/test.yml -i tests/inventory --connection=local --become
23
23
# Run the role again, checking to make sure it's idempotent.
24
24
- >
25
- ansible-playbook tests/test.yml -i tests/inventory --connection=local --sudo | grep -q 'changed=0.*failed=0'
25
+ ansible-playbook tests/test.yml -i tests/inventory --connection=local --become | grep -q 'changed=0.*failed=0'
26
26
&& (echo 'Idempotence test: pass' && exit 0) || (echo 'Idempotence test: fail' && exit 1)
27
27
# Request a page via the web server, to make sure NGINX is running and responds.
28
28
- curl http://localhost/
You can’t perform that action at this time.
0 commit comments