7:e6345025463e
Anton Shestakov <av6@dwimlabs.net>, Tue, 17 Jul 2018 13:40:48 +0800
hgweb: configurable number of workers

next change 9:855a89f33e5e
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
- python-dev
- python-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
...