Download:
child 129:ba47544bc028
parent 127:a10e42d2fc22
128:9fcc3e45dc29
Anton Shestakov <av6@dwimlabs.net>, Thu, 11 Aug 2016 14:14:37 +0800
pipelines: plan b: install supervisor early and restart it before ansible

1 файлов изменено, 3 вставок(+), 4 удалений(-) [+]
bitbucket-pipelines.yml file | annotate | diff | comparison | revisions
--- a/bitbucket-pipelines.yml Thu Aug 11 14:06:59 2016 +0800
+++ b/bitbucket-pipelines.yml Thu Aug 11 14:14:37 2016 +0800
@@ -1,11 +1,9 @@
-image: ubuntu:xenial
+image: python:2
pipelines:
default:
- step:
script:
- - apt-get update
- - apt-get install -y python-pip virtualenv
- pip install -r REQUIREMENTS
- ./test.py
@@ -14,7 +12,8 @@
- ansible-playbook provision/playbook.yml --syntax-check -vvvv
- ansible-playbook provision/playbook.yml --list-tasks -vvvv
- - apt-get install -y sudo
+ - apt-get update && apt-get install -y sudo supervisor
+ - service supervisor restart
- echo localhost > inventory
- ansible-playbook provision/playbook.yml
-i inventory --connection=local --skip-tags=ufw -vvvv