--- a/bitbucket-pipelines.yml Thu Aug 11 18:19:01 2016 +0800
+++ b/bitbucket-pipelines.yml Thu Aug 11 18:21:31 2016 +0800
-i inventory --connection=local --skip-tags=ufw --verbose
- pgrep -f 'fruitbar/venv/bin/gunicorn'
- ansible-playbook provision/playbook.yml
- -i inventory --connection=local --skip-tags=ufw -vvvv
+ -i inventory --connection=local --skip-tags=ufw
+ | grep -q 'changed=0.*failed=0'
+ && { echo 'Idempotence test: pass'; exit 0; }
+ || { echo 'Idempotence test: fail'; exit 1; }