Anton Shestakov <av6@dwimlabs.net>, Mon, 27 Jun 2016 16:30:20 +0800
prefix all role variables
roles/hgweb/tasks/appinstall.yml
Permissions: -rw-r--r--
- name: Ensure required directories exist file: path=/home/{{ hgweb_user }}/{{ item }}/ state=directory 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 }} - name: Pull Evolve {{ hgweb_evolve_rev }} hg: repo={{ hgweb_evolve_url }} dest=/home/{{ hgweb_user }}/evolve/ revision={{ hgweb_evolve_rev }} template: src={{ item }} dest=/home/{{ hgweb_user }}/hgwebfiles/{{ item }} - name: Copy requirements.txt copy: src=requirements.txt dest=/home/{{ hgweb_user }}/hgwebfiles/requirements.txt - name: Set up venv for gunicorn pip: requirements=/home/{{ hgweb_user }}/hgwebfiles/requirements.txt state=latest virtualenv=/home/{{ hgweb_user }}/hgwebfiles/venv/