blob: 15516d4733e0c2794d94bc4a17071244a3a62b77 (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
---
- block:
- name: Install CGit and FastCGI wrapper packages
community.general.apk:
name:
- cgit
- fcgiwrap
- spawn-fcgi
- py3-pygments
state: present
- name: Ensure root CGit configuration exists
ansible.builtin.template:
src: cgitrc.j2
dest: "/etc/cgitrc"
owner: root
group: root
mode: '0444'
- name: Ensure {{ instance }} CGit configuration exists
ansible.builtin.template:
src: cgitrc-instance.j2
dest: "/etc/cgitrc-{{ instance }}"
owner: root
group: root
mode: '0444'
- name: Create OpenRC init script symlink
ansible.builtin.file:
src: /etc/init.d/spawn-fcgi
dest: "/etc/init.d/spawn-fcgi.cgit"
state: link
owner: root
group: root
- name: Deploy spawn-fcgi configuration
ansible.builtin.template:
src: spawn-fcgi.cgit.j2
dest: "/etc/conf.d/spawn-fcgi.cgit"
owner: root
group: root
mode: '0444'
notify: Restart spawn-fcgi.cgit
- name: Ensure spawn-fcgi.git is started and enabled
ansible.builtin.service:
name: "spawn-fcgi.cgit"
state: started
enabled: true
tags:
- cgit
|