9:855a89f33e5e default tip
Anton Shestakov <av6@dwimlabs.net>, Mon, 28 Sep 2020 21:30:03 +0800
hgweb: run on Python 3

previous change 6:a8d5193b770c

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 {{ hgweb_subdomain }}.{{ hostname }} Apache httpd site
template:
src: etc/apache2/sites-available/hgweb.conf
dest: /etc/apache2/sites-available/{{ hgweb_subdomain }}.{{ hostname }}.conf
notify:
- restart apache2
- name: Enable {{ hgweb_subdomain }}.{{ hostname }} Apache httpd site
file:
src: /etc/apache2/sites-available/{{ hgweb_subdomain }}.{{ hostname }}.conf
dest: /etc/apache2/sites-enabled/050-{{ hgweb_subdomain }}.{{ hostname }}.conf
state: link
notify:
- restart apache2
...