Anton Shestakov <av6@dwimlabs.net>, Mon, 27 Jun 2016 16:30:20 +0800
prefix all role variables
roles/hgweb/tasks/main.yml
Permissions: -rw-r--r--
user: name={{ hgweb_user }} apt: pkg={{ item }} state=present - name: Install virtualenv apt: pkg=virtualenv state=present when: ansible_distribution_release == 'jessie' - include: appinstall.yml become_user: '{{ hgweb_user }}' - name: Add supervisor app template: src=etc/supervisor/conf.d/hgweb.conf dest=/etc/supervisor/conf.d/hgweb.conf - name: Add {{ hgweb_subdomain }}.{{ hostname }} Nginx site template: src=etc/nginx/sites-available/hgweb dest=/etc/nginx/sites-available/{{ hgweb_subdomain }}.{{ hostname }} - name: Enable {{ hgweb_subdomain }}.{{ hostname }} Nginx site file: src=/etc/nginx/sites-available/{{ hgweb_subdomain }}.{{ hostname }} dest=/etc/nginx/sites-enabled/50{{ hgweb_subdomain }}.{{ hostname }} state=link