blob: ec795152563cce7fcafe18d1850c6226c3f094a7 (
plain) (
blame)
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
|
- name: Install cgit
community.general.openbsd_pkg:
name: cgit
state: present
- name: Deploy cgit vhost fragment
ansible.builtin.template:
src: httpd.d/cgit.conf.j2
dest: "{{ obsd_httpd_conf_d | default('/etc/httpd.d') }}/cgit.conf"
owner: root
group: wheel
mode: "0644"
notify: Reload httpd
- name: Create cgit cache directory
ansible.builtin.file:
path: "/var/www{{ obsd_cgit_cache_dir }}"
state: directory
owner: www
group: daemon
mode: "0755"
- name: Compile markdown renderer into chroot
ansible.builtin.include_tasks: markdown.yml
- name: Copy extra html head file into chroot
ansible.builtin.copy:
src: head.html
dest: /var/www/cgit/
owner: root
group: daemon
mode: "0644"
- name: Deploy cgitrc configuration
ansible.builtin.template:
src: cgitrc.j2
dest: /var/www/conf/cgitrc
owner: www
group: daemon
mode: "0644"
|