159:2bc0a5ac4959
Anton Shestakov <av6@dwimlabs.net>, Tue, 31 Oct 2017 12:56:39 +0800
provision: WSGI is an acronym

previous change 110:d5cc65e4d0b7

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: 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
notify:
- restart fruitbar
- name: Add gunicorn config
template:
src: gunicorn.conf
dest: /home/{{ user }}/webapps/fruitbar/gunicorn.conf
notify:
- restart fruitbar
...