summaryrefslogtreecommitdiff
path: root/roles/subdap/tasks/as_subdap.yaml
blob: f0b907367de1b21067061cf2750c6267dd1aa3f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
---
- name: Clone subdap code
  git:
    dest=/var/subdap/src
    repo=git://git.sublab.org/subdap
    accept_hostkey=yes

- name: Setup virtualenv for subdap
  pip:
    name={{ item }}
    virtualenv=/var/subdap/venv
    virtualenv_site_packages=yes
  with_items:
  - cherrypy
  - egenix-mx-base
  - genshi
  - gunicorn

- name: Create accountservice.py
  template:
    dest=/var/subdap/src/accountservice.py
    src=accountservice.py.j2
    mode=0600