summaryrefslogtreecommitdiff
path: root/roles/cgit/tasks/main.yml
blob: e88ae11b7487cadd239b444bfe944e7a6a801893 (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
- 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

- name: Remove cgit favicon.ico file
  ansible.builtin.file:
    path: /usr/share/webapps/cgit/favicon.ico
    state: absent