108:f24c7fee1b0d
Anton Shestakov <av6@dwimlabs.net>, Thu, 21 Jul 2016 17:15:21 +0800
provision: update to more YAMLy syntax

next change 109:875d9d6e6c05
previous change 106:807d12ac771c

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
...