blob: 58a2005a4c19dfec8fbdfdfdc1d028e3cedd7b0e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
---
- name: apt install cgit and fcgiwrap
become: yes
apt: name="{{item}}"
loop:
- "cgit"
- "fcgiwrap"
- "git"
- "python3-pygments"
notify: restart fcgiwrap
- name: configure cgit
become: yes
template: src="cgitrc.j2" dest="/etc/cgitrc"
notify: restart fcgiwrap
- name: install cgit nginx site
become: yes
template: src="cgit.nginx.conf.j2" dest="/etc/nginx/sites-available/cgit.conf"
notify: restart nginx
- name: enable cgit nginx site
become: yes
file:
src: "/etc/nginx/sites-available/cgit.conf"
dest: "/etc/nginx/sites-enabled/cgit.conf"
state: "link"
notify: restart nginx
- name: ensure fcgiwrap service is started
become: yes
systemd: name="fcgiwrap.service" enabled="yes" state="started"
|