summaryrefslogtreecommitdiff
path: root/roles/cgit/tasks/main.yml
blob: 887ebc7c8a3511b995dddf04569e1dd25f2ec349 (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
- name: Install cgit
  ansible.builtin.package:
    name:
      - cgit
    state: present

- ansible.builtin.include_role:
    name: fcgiwrap

- ansible.builtin.include_role:
   name: nginx

- ansible.builtin.include_role:
   name: git

- name: Configure cgit for git.ilvokhin.com
  ansible.builtin.copy:
    src: files/cgitrc
    dest: /etc/cgitrc
    owner: root
    group: root
    mode: u+rw,g+r,o+r

- name: Copy nginx for cgit
  ansible.builtin.copy:
    src: files/cgit.conf
    dest: /etc/nginx/includes/cgit.conf
    owner: root
    group: root
    mode: u+rw,g+rw,o+r
  notify:
    - Reload nginx