Skip to content

Commit 5322316

Browse files
authored
Merge pull request #19 from ienugr/master
Update --sudo arguments to --become since --sudo has been deprecated
2 parents 9555ab9 + c834222 commit 5322316

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
language: python
33
python: "2.7"
44
# Use the new container infrastructure
5-
sudo: false
5+
sudo: required
66
# Install ansible
77
addons:
88
apt:
@@ -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)