aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/install-app
diff options
context:
space:
mode:
authorMilo Casagrande <milo@ubuntu.com>2014-03-27 10:00:46 +0100
committerMilo Casagrande <milo@ubuntu.com>2014-03-27 10:00:46 +0100
commit7e99b70f0526b89ee7642cf7e4d000db58b80a6c (patch)
tree876f95da1e946ea1b810b15ca35855c139d37628 /ansible/roles/install-app
parentd729a950ce28f684850bde51609ed180a2462f6a (diff)
Completed ansible playbook.
* We now have a usable ansible playbook. * Corrected filename, server file permission.
Diffstat (limited to 'ansible/roles/install-app')
-rw-r--r--ansible/roles/install-app/tasks/main.yml27
1 files changed, 27 insertions, 0 deletions
diff --git a/ansible/roles/install-app/tasks/main.yml b/ansible/roles/install-app/tasks/main.yml
new file mode 100644
index 0000000..55eeb9a
--- /dev/null
+++ b/ansible/roles/install-app/tasks/main.yml
@@ -0,0 +1,27 @@
+---
+
+- 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
+ tags:
+ - install
+ - app
+
+- name: Fix cloned repo permissions
+ file: path={{ install_base }}/{{ hostname }}
+ state=directory
+ recurse=yes
+ owner={{ app_user }}
+ group={{ app_user }}
+ tags:
+ - install
+ - app
+
+- name: Install pip requirements
+ pip: requirements={{ install_base }}/{{ hostname }}/requirements.txt
+ tags:
+ - install
+ - app