1:98d18b9ebcb4
Anton Shestakov <av6@dwimlabs.net>, Tue, 17 Jul 2018 13:17:59 +0800
playbook, hgweb role

next change 4:14841fed8ac3

roles/hgweb/tasks/main.yml

Permissions: -rw-r--r--

Other formats: Feeds:
---
- name: Create user
user:
name: '{{ hgweb_user }}'
- name: Install packages
apt:
pkg: '{{ item }}'
state: present
with_items:
- build-essential
- mercurial
- python-dev
- python-pygments # for hightlight extension
tags: [packages, inert]
- include: appinstall.yml
become: yes
become_user: '{{ hgweb_user }}'
- name: Add uWSGI app
template:
src: etc/uwsgi/apps-available/hgweb.yaml
dest: /etc/uwsgi/apps-available/hgweb.yaml
notify:
- restart uwsgi
- name: Enable uWSGI app
file:
src: /etc/uwsgi/apps-available/hgweb.yaml
dest: /etc/uwsgi/apps-enabled/50-hgweb.yaml
state: link
notify:
- restart uwsgi
- name: Add {{ hgweb_subdomain }}.{{ hostname }} Lighttpd site
template:
src: etc/lighttpd/conf-available/hgweb.conf
dest: /etc/lighttpd/conf-available/{{ hgweb_subdomain }}.{{ hostname }}.conf
notify:
- restart lighttpd
- name: Enable {{ hgweb_subdomain }}.{{ hostname }} Lighttpd site
file:
src: /etc/lighttpd/conf-available/{{ hgweb_subdomain }}.{{ hostname }}.conf
dest: /etc/lighttpd/conf-enabled/50-{{ hgweb_subdomain }}.{{ hostname }}.conf
state: link
notify:
- restart lighttpd
...