blob: fa6841564aa39e6e296c9ae9a8aad6909fea092c (
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
47
48
49
50
51
52
53
54
55
56
57
58
|
- name: ensure cgit is installed
package:
name: cgit
state: present
- name: generate cgit configuration files
template:
src: "{{ item.template }}"
dest: "{{ item.file }}"
owner: "0"
group: "0"
mode: "0644"
loop:
- template: conf-cgitrc.j2
file: "{{ cgit_chroot_dir }}/conf/cgitrc"
- template: conf-footer.html.j2
file: "{{ cgit_chroot_dir }}/conf/footer.html"
- template: etc-httpd.d-cgit.conf.j2
file: /etc/httpd.d/cgit.conf
- name: generate cgit configuration for httpd
template:
src: etc-httpd.d-cgit.conf.j2
dest: /etc/httpd.d/cgit.conf
owner: "0"
group: "0"
mode: "0644"
- name: copy utility in httpd chroot
copy:
src: "/bin/{{ item }}"
dest: "{{ cgit_chroot_dir }}/bin"
mode: preserve
remote_src: true
loop:
- "sh"
- "cat"
- name: copy about-filter generator
copy:
src: about-filter.sh
dest: "{{ cgit_chroot_dir }}/bin/about-filter.sh"
owner: "0"
group: "0"
mode: "0755"
- name: start and enable slowcgi service
service:
name: slowcgi
state: restarted
enabled: true
- name: httpd password information
debug:
msg: |
Please provide a password using htpasswd,
in "{{ cgit_chroot_dir }}/htpasswd/cgit"
when: cgit_authenticate
|