summaryrefslogtreecommitdiff
path: root/per-service/patchwork/roles/patchwork-pre-django/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'per-service/patchwork/roles/patchwork-pre-django/tasks/main.yml')
-rw-r--r--per-service/patchwork/roles/patchwork-pre-django/tasks/main.yml18
1 files changed, 18 insertions, 0 deletions
diff --git a/per-service/patchwork/roles/patchwork-pre-django/tasks/main.yml b/per-service/patchwork/roles/patchwork-pre-django/tasks/main.yml
index 195edff1..a7333010 100644
--- a/per-service/patchwork/roles/patchwork-pre-django/tasks/main.yml
+++ b/per-service/patchwork/roles/patchwork-pre-django/tasks/main.yml
@@ -9,6 +9,10 @@
file: path={{install_base}}/{{hostname}}
owner={{apache_user}} group={{apache_user}} mode=0755 state=directory
+- name: Create directory for git repos
+ file: path="{{install_base}}/{{hostname}}/repos" state=directory
+ owner={{apache_user}} group={{apache_user}}
+
- name: Install patchwork tools
git: repo=https://git.linaro.org/infrastructure/patchwork-tools.git
dest={{install_base}}/{{hostname}}/tools
@@ -24,3 +28,17 @@
notify: restart-apache
tags:
- update
+
+- name: Install cron for patchwork
+ template: src=templates/patchwork.cron.d dest=/etc/cron.d/patchwork
+ owner=root group=root mode=0644
+
+- name: Clone django-crowd-rest-backend repository
+ git: repo=http://git.linaro.org/lava/django-crowd-rest-backend.git
+ dest=/srv/django-crowd-rest-backend version="HEAD"
+ register: crowdbackend
+
+- name: Install django-crowd-rest-backed
+ command: python ./setup.py install
+ chdir=/srv/django-crowd-rest-backend
+ when: crowdbackend is defined and crowdbackend.changed