aboutsummaryrefslogtreecommitdiffstats
path: root/roles/obsd_cgit/tasks/main.yml
blob: 3bb259352088acbe9641ed103699a49623cffcaf (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
- 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: "{{ httpd_conf_d | default('/etc/httpd.d') }}/cgit.conf"
    owner: root
    group: wheel
    mode: "0644"
  notify: restart httpd

- name: Deploy cgitrc
  ansible.builtin.template:
    src: cgitrc.j2
    dest: /var/www/conf/cgitrc
    owner: www
    group: daemon
    mode: "0644"

- name: Create cgit cache directory
  ansible.builtin.file:
    path: "{{ cgit_cache_dir }}"
    state: directory
    owner: www
    group: daemon
    mode: "0755"