Fix services not starting on first run.
Services now run properly on first run (thanks Joel). Didn't need to check the changed status of the command after all. Also, spelling mistake in the playbook launch fixed. Change-Id: I5b6cb276b066844c934da4ffbd2513a006033214
This commit is contained in:
parent
f4484a9a9d
commit
51bfd3f12a
@ -1,3 +1,2 @@
|
||||
- name: restart stv3-api
|
||||
service: name=stv3-api state=restarted
|
||||
when: not stv3-api|changed
|
||||
|
@ -2,8 +2,6 @@
|
||||
# to started by the stv3 worker process task
|
||||
- name: restart yagi-event
|
||||
service: name=yagi-event state=restarted
|
||||
when: not yagi-event|changed
|
||||
|
||||
- name: restart pipeline-worker
|
||||
service: name=pipeline_worker state=restarted
|
||||
when: not pipeline_worker|changed
|
||||
|
2
build.sh
2
build.sh
@ -118,7 +118,7 @@ then
|
||||
|
||||
if [[ "$DEPLOY" == true ]]
|
||||
then
|
||||
echo ansible-playbook db.yaml --extra-vars \"tarball_absolute_path=../stacktachv3_$SHA.tar.gz\" -vvv
|
||||
echo ansible-playbook database.yaml --extra-vars \"tarball_absolute_path=../stacktachv3_$SHA.tar.gz\" -vvv
|
||||
echo ansible-playbook workers.yaml --extra-vars \"tarball_absolute_path=../stacktachv3_$SHA.tar.gz\" -vvv
|
||||
echo ansible-playbook api.yaml --extra-vars \"tarball_absolute_path=../stacktachv3_$SHA.tar.gz\" -vvv
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user