diff options
author | Milo Casagrande <milo@ubuntu.com> | 2014-03-27 10:00:46 +0100 |
---|---|---|
committer | Milo Casagrande <milo@ubuntu.com> | 2014-03-27 10:00:46 +0100 |
commit | 7e99b70f0526b89ee7642cf7e4d000db58b80a6c (patch) | |
tree | 876f95da1e946ea1b810b15ca35855c139d37628 /ansible/roles/install-app | |
parent | d729a950ce28f684850bde51609ed180a2462f6a (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.yml | 27 |
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 |