4:14841fed8ac3 default tip
Anton Shestakov <av6@dwimlabs.net>, Mon, 28 Sep 2020 11:31:48 +0800
hgweb: run on Python 3

previous change 1:98d18b9ebcb4

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
- python3-dev
- python3-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
...