summaryrefslogtreecommitdiffstats
path: root/roles/cgit/tasks/main.yml
blob: 9e1d47e510bd8b8b4f61812355376d355d595ac7 (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
41
42
43
44
45
46
---

- name: Install cgit and dependencies
  package:
    name: "{{ item }}"
    state: present
  with_items:
    - cgit
    - fcgiwrap
    - python-pygments
    - python-markdown
    - python-docutils

- name: Append git group to http user
  user:
    name: "http"
    groups: "git"
    append: yes
  notify:
    - restart fcgiwrap

- name: Enable fcgiwrap
  service:
    name: fcgiwrap.socket
    state: started
    enabled: yes
  notify:
    - restart fcgiwrap

- name: Copy configuration from template
  template:
    src: cgitrc.j2
    dest: /etc/cgitrc
    mode: 0644
    owner: "root"
    group: "root"

- name: Copy nginx conf file
  template:
    src: cgit_nginx.conf.j2
    dest: /etc/nginx/nginx.d/cgit.conf
    mode: 0644
    owner: "root"
    group: "root"
  notify:
    - reload nginx