15:a942df0ad142
Anton Shestakov <av6@dwimlabs.net>, Sat, 25 Jun 2016 14:34:47 +0800
drop some defaults and unrelated config directives from supervisor config - process_name defaults to the part after "program:" - stopsignal defaults to SIGTERM, which also works fine for hgweb - numprocs defaults to 1 - autorestart defaults to "unexpected", which is fine and is less surprising

next change 17:5a3522b5fd5c
previous change 2:88933f6c62bd

roles/hgweb/tasks/appinstall.yml

Permissions: -rw-r--r--

Other formats: Feeds:
---
- name: Ensure required directories exist
file: path=/home/{{ user }}/{{ item }}/ state=directory
with_items:
- hgwebfiles
- repos
- name: Add .hgrc
copy: src=.hgrc dest=/home/{{ user }}/.hgrc
- name: Pull Mercurial {{ mercurial_rev }}
hg: repo={{ mercurial_url }} dest=/home/{{ user }}/hg/ revision={{ mercurial_rev }}
notify:
- make local
- restart hgweb
tags: [inert]
- name: Pull Evolve {{ evolve_rev }}
hg: repo={{ evolve_url }} dest=/home/{{ user }}/evolve/ revision={{ evolve_rev }}
notify:
- restart hgweb
tags: [inert]
- name: Add config files
template: src={{ item }} dest=/home/{{ user }}/hgwebfiles/{{ item }}
with_items:
- hgweb.py
- hgweb.conf
- gunicorn.conf
notify:
- restart hgweb
- name: Copy requirements.txt
copy: src=requirements.txt dest=/home/{{ user }}/hgwebfiles/requirements.txt
- name: Set up venv for gunicorn
pip: requirements=/home/{{ user }}/hgwebfiles/requirements.txt state=latest virtualenv=/home/{{ user }}/hgwebfiles/venv/
notify:
- restart hgweb
...