aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/install-app
diff options
context:
space:
mode:
authorMilo Casagrande <milo.casagrande@linaro.org>2014-06-06 10:59:01 +0200
committerMilo Casagrande <milo.casagrande@linaro.org>2014-06-06 10:59:01 +0200
commit9a4eb02fee707697858adc020d99040344ad8075 (patch)
treeb1b644e152aebc5d0e92cd73e7b36b62e1c71467 /ansible/roles/install-app
parent33e9a47709732bc0e5168fc305af26e4ea733344 (diff)
ansible: Update playbook, fix variable names.
Change-Id: Ie606a3cb1af01114b2d1fe3d7cab94b710d278b9
Diffstat (limited to 'ansible/roles/install-app')
-rw-r--r--ansible/roles/install-app/tasks/main.yml27
1 files changed, 16 insertions, 11 deletions
diff --git a/ansible/roles/install-app/tasks/main.yml b/ansible/roles/install-app/tasks/main.yml
index ba3d8db..addd2a5 100644
--- a/ansible/roles/install-app/tasks/main.yml
+++ b/ansible/roles/install-app/tasks/main.yml
@@ -1,10 +1,22 @@
---
+- name: Create celery log directory
+ file: path=/var/log/celery
+ state=directory
+ owner={{ app_user }}
+ group={{ app_user }}
+ mode=0755
+ tags:
+ - install
+ - app
+
- name: Checkout kernel-ci-backend code
git: repo=http://git.linaro.org/git/infrastructure/kernel-ci-backend.git
dest={{ install_base }}/{{ hostname }}
version={{ git_head }}
update=yes
- notify: restart-kernel-ci-backend
+ notify:
+ - restart-kernel-ci-backend
+ - restart-celery
tags:
- install
- app
@@ -22,6 +34,9 @@
- name: Install pip requirements
pip: requirements={{ install_base }}/{{ hostname }}/requirements.txt
virtualenv={{ install_base }}/.venv/{{ hostname }}
+ notify:
+ - restart-kernel-ci-backend
+ - restart-celery
tags:
- install
- app
@@ -35,13 +50,3 @@
tags:
- install
- app
-
-- name: Create celery log directory
- file: path=/var/log/celery
- state=directory
- owner={{ app_user }}
- group={{ app_user }}
- mode=0755
- tags:
- - install
- - app