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:
Sandy Walsh 2014-12-16 07:53:17 -08:00
parent f4484a9a9d
commit 51bfd3f12a
3 changed files with 1 additions and 4 deletions

View File

@ -1,3 +1,2 @@
- name: restart stv3-api
service: name=stv3-api state=restarted
when: not stv3-api|changed

View File

@ -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

View File

@ -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