19:0b0d1d97f49f
Anton Shestakov <av6@dwimlabs.net>, Fri, 29 Jul 2016 22:32:18 +0800
role vars are now legit super evil, confirmed by Ansible 2.1.0.0 They are so extremely high-priority now that they cannot be redefined in a playbook. At least defaults should work as expected?

next change 32:cbe814edc59d
previous change 17:5a3522b5fd5c

roles/hgweb/templates/hgweb.py

Permissions: -rw-r--r--

Other formats: Feeds:
# Path to repo or hgweb config to serve (see 'hg help hgweb')
config = "/home/{{ hgweb_user }}/hgwebfiles/hgweb.conf"
# Uncomment and adjust if Mercurial is not installed system-wide
# (consult "installed modules" path from 'hg debuginstall'):
import sys; sys.path.insert(0, "/home/{{ hgweb_user }}/hg/")
# Uncomment to send python tracebacks to the browser if an error occurs:
#import cgitb; cgitb.enable()
# enable demandloading to reduce startup time
from mercurial import demandimport; demandimport.enable()
from mercurial.hgweb import hgweb
application = hgweb(config)