2:ba230182fdfd
Anton Shestakov <av6@dwimlabs.net>, Mon, 16 Jul 2018 16:45:11 +0800
defaults: remove hgweb_workers variable (unused)

next change 6:a8d5193b770c
previous change 1:cb5e027c0015

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