summaryrefslogtreecommitdiff
path: root/roles/subdap/tasks/as_subdap.yaml
blob: f51e0987d7a08e26656dac28be594c7b6744652f (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://{{ groups['gitservers'][0] }}/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