Skip to content

Commit e531754

Browse files
committed
Change --sudo to --become since --sudo has been deprecated.
1 parent 9555ab9 commit e531754

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ script:
1919
# Basic role syntax check
2020
- ansible-playbook tests/test.yml -i tests/inventory --syntax-check
2121
# 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
2323
# Run the role again, checking to make sure it's idempotent.
2424
- >
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'
2626
&& (echo 'Idempotence test: pass' && exit 0) || (echo 'Idempotence test: fail' && exit 1)
2727
# Request a page via the web server, to make sure NGINX is running and responds.
2828
- curl http://localhost/

0 commit comments

Comments
 (0)