--- a/playbook-example.yml Mon Sep 28 21:29:27 2020 +0800
+++ b/playbook-example.yml Mon Sep 28 21:30:03 2020 +0800
+ - libapache2-mod-wsgi-py3
--- a/roles/hgweb/handlers/main.yml Mon Sep 28 21:29:27 2020 +0800
+++ b/roles/hgweb/handlers/main.yml Mon Sep 28 21:30:03 2020 +0800
- command: make --directory /home/{{ hgweb_user }}/hg/ local
+ command: make PYTHON=python3 --directory /home/{{ hgweb_user }}/hg/ local
become_user: '{{ hgweb_user }}'
--- a/roles/hgweb/tasks/main.yml Mon Sep 28 21:29:27 2020 +0800
+++ b/roles/hgweb/tasks/main.yml Mon Sep 28 21:30:03 2020 +0800
- - python-pygments # for hightlight extension
+ - python3-pygments # for hightlight extension
- include: appinstall.yml
--- a/roles/hgweb/templates/hgweb.wsgi Mon Sep 28 21:29:27 2020 +0800
+++ b/roles/hgweb/templates/hgweb.wsgi Mon Sep 28 21:30:03 2020 +0800
# Path to repo or hgweb config to serve (see 'hg help hgweb')
-config = "/home/{{ hgweb_user }}/hgwebfiles/hgweb.conf"
+config = b"/home/{{ hgweb_user }}/hgwebfiles/hgweb.conf"
# Uncomment and adjust if Mercurial is not installed system-wide
# (consult "installed modules" path from 'hg debuginstall'):