110:d5cc65e4d0b7
Anton Shestakov <av6@dwimlabs.net>, Thu, 21 Jul 2016 17:21:01 +0800
provision: don't pin certs, rely on Mercurial being configured correctly Bitbucket already has a trusted, valid certificate. If extra security is needed, it shouldn't be done in user's .hgrc anyway. And since repo is a variable now, it could be on a host that's not in [hostfingerprints].

next change 159:2bc0a5ac4959
previous change 109:875d9d6e6c05

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