106:807d12ac771c
Anton Shestakov <av6@dwimlabs.net>, Thu, 21 Jul 2016 17:12:00 +0800
provision: move repo url and revision to vars

next change 108:f24c7fee1b0d
previous change 66:4f361ef1d737

provision/roles/fruitbar/tasks/appinstall.yml

Permissions: -rw-r--r--

Other formats: Feeds:
---
- name: Ensure ~/webapps/ exists with world-readable permissions
file: path=/home/{{ user }}/webapps/ state=directory mode=0755
- name: Add .hgrc
copy: src=.hgrc dest=/home/{{ user }}/.hgrc
- name: Pull code
hg:
repo: '{{ repo }}'
dest: /home/{{ user }}/webapps/fruitbar/
revision: '{{ revision }}'
notify:
- restart fruitbar
- name: Set up venv
pip: requirements=/home/{{ user }}/webapps/fruitbar/REQUIREMENTS virtualenv=/home/{{ user }}/webapps/fruitbar/venv/
notify:
- restart fruitbar
- name: Install wsgi stuff
pip: name={{ item }} state=latest virtualenv=/home/{{ user }}/webapps/fruitbar/venv/
with_items:
- eventlet
- gunicorn
- name: Add gunicorn config
template: src=gunicorn.conf dest=/home/{{ user }}/webapps/fruitbar/gunicorn.conf
notify:
- restart fruitbar
...