18:464f9dec4e2f
Anton Shestakov <av6@dwimlabs.net>, Mon, 27 Jun 2016 16:49:16 +0800
use a more YAMLy syntax everywhere Some lines were getting out of hand length-wise.

next change 23:ed654a6999fe
previous change 17:5a3522b5fd5c

roles/hgweb/tasks/appinstall.yml

Permissions: -rw-r--r--

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