Anton Shestakov <engored@ya.ru>, Sat, 20 Feb 2016 15:57:54 +0800
import hgweb role
roles/hgweb/tasks/appinstall.yml
Permissions: -rw-r--r--
- name: Ensure required directories exist file: path=/home/{{ user }}/{{ item }}/ state=directory copy: src=.hgrc dest=/home/{{ user }}/.hgrc - name: Pull Mercurial {{ mercurial_rev }} hg: repo={{ mercurial_url }} dest=/home/{{ user }}/hg/ revision={{ mercurial_rev }} - name: Pull Evolve {{ evolve_rev }} hg: repo={{ evolve_url }} dest=/home/{{ user }}/evolve/ revision={{ evolve_rev }} template: src={{ item }} dest=/home/{{ user }}/hgwebfiles/{{ item }} - 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/