From e5317544ddbc848096e83f5fc7cc46c38078006d Mon Sep 17 00:00:00 2001 From: Ismandra Eka Nugraha Date: Fri, 13 Apr 2018 15:57:56 +0700 Subject: [PATCH] Change `--sudo` to `--become` since `--sudo` has been deprecated. --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 290642c..337141e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,10 +19,10 @@ script: # Basic role syntax check - ansible-playbook tests/test.yml -i tests/inventory --syntax-check # Run the role with ansible-playbook. - - ansible-playbook tests/test.yml -i tests/inventory --connection=local --sudo + - ansible-playbook tests/test.yml -i tests/inventory --connection=local --become # Run the role again, checking to make sure it's idempotent. - > - ansible-playbook tests/test.yml -i tests/inventory --connection=local --sudo | grep -q 'changed=0.*failed=0' + ansible-playbook tests/test.yml -i tests/inventory --connection=local --become | grep -q 'changed=0.*failed=0' && (echo 'Idempotence test: pass' && exit 0) || (echo 'Idempotence test: fail' && exit 1) # Request a page via the web server, to make sure NGINX is running and responds. - curl http://localhost/