Commit 367fe647 authored by Themis Zamani's avatar Themis Zamani

travis-ci test for ansible

parent 1cff4037
......@@ -16,5 +16,7 @@ install:
script:
# We'll add some commands to test the role here.
- cd ansible/roles/common/tests && ansible-playbook -i inventory test.yml --syntax-check
- ansible-playbook -i inventory test.yml --connection=local --sudo
- ansible-playbook -i inventory test.yml --connection=local --sudo | grep -q 'changed=0.*failed=0'
&& (echo 'Idempotence test: pass' && exit 0)
|| (echo 'Idempotence test: fail' && exit 1)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment