224:668b4f6a8d60
Anton Shestakov <av6@dwimlabs.net>, Fri, 12 Aug 2016 21:00:36 +0800
pipelines: only some tags/roles are currently idempotent 'common' uses command module for setting system locale, and for some reason service module (in post_tasks) thinks prosody needs enabling every time.

next change 225:877423729aec
previous change 223:42b182d579fa

bitbucket-pipelines.yml

Permissions: -rw-r--r--

Other formats: Feeds:
image: ubuntu:trusty
pipelines:
default:
- step:
script:
- apt-get update && apt-get install -y
build-essential
libffi-dev
libssl-dev
python-dev
python-virtualenv
- virtualenv ./venv
- ./venv/bin/pip install ansible
- ./venv/bin/ansible --version
- echo localhost > inventory
- ./venv/bin/ansible-playbook contrib/provision/playbook.yml
-i inventory --syntax-check
- ./venv/bin/ansible-playbook contrib/provision/playbook.yml
-i inventory --list-tasks
- ./venv/bin/ansible-playbook contrib/provision/playbook.yml
-i inventory --connection=local --skip-tags=ufw --verbose
-e 'user=alice dir=/home/alice/files'
- pgrep -f '/usr/bin/prosody'
- pgrep nginx
- pgrep reTurnServer
- ./venv/bin/ansible-playbook contrib/provision/playbook.yml
-i inventory --connection=local
-t certs,nginx,prosody,turnserver,tram-im
-e 'user=alice dir=/home/alice/files'
| grep -q 'changed=0.*failed=0'
&& { echo 'Idempotence test passed'; exit 0; }
|| { echo 'Idempotence test failed'; exit 1; }