8:d5f5d21b8880
Anton Shestakov <av6@dwimlabs.net>, Mon, 28 Sep 2020 21:29:27 +0800
playbook: update apt parameters

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