summaryrefslogtreecommitdiffstats
path: root/roles/cgit/tasks/main.yml
blob: d7cb520468af1f0994e7e4292f949fe1401e761d (plain)
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
---
- yum: name={{ item }} state=installed
  with_items:
  - cgit

- lineinfile:
    dest: /etc/cgitrc
    line: "include=/etc/cgitrepos"

- template:
    mode: 0644
    src: cgitrepos
    dest: /etc/cgitrepos

- copy:
    mode: 0644
    src: cgit.httpd.conf
    dest: /etc/httpd/conf.d/cgit.conf
  notify: restart httpd

# TODO clean once the mess with domain name is solved
- template:
    src: vhost.conf
    dest: /etc/httpd/conf.d/{{ website_domain }}.conf.d/cgit.conf
  notify: restart httpd