--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/bitbucket-pipelines.yml Fri Aug 12 18:18:47 2016 +0800
+ - apt-get update && apt-get install -y python-virtualenv
+ - ./venv/bin/pip install ansible
+ - echo localhost > inventory
+ - ansible-playbook provision/playbook.yml
+ -i inventory --syntax-check
+ - ansible-playbook provision/playbook.yml
+ -i inventory --list-tasks
+ - ansible-playbook provision/playbook.yml
+ -i inventory --connection=local --skip-tags=ufw --verbose
+ - pgrep -f '/usr/bin/prosody'
+ - ansible-playbook provision/playbook.yml
+ -i inventory --connection=local --skip-tags=ufw
+ | grep -q 'changed=0.*failed=0'
+ && { echo 'Idempotence test passed'; exit 0; }
+ || { echo 'Idempotence test failed'; exit 1; }