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

# cgit ~~ roles/cgit/tasks/main.yml
# cgit web interface

---

- name: ensure cgit is installed
  package:
    name: cgit
    state: present

- name: ensure httpd.d directory exists
  file: path=/etc/httpd.d state=directory

- name: copy httpd configuration
  copy:
    src: httpd.conf
    dest: /etc/httpd.d/stagit.conf
    owner: "{{ user_root }}"
    group: "{{ group_root }}"
    mode: 0644

- name: execute static-page generation script once
  shell: ./generate-static-git.sh
  args:
    chdir: "{{ stagit_htmldir }}"
remember that computers suck.