summaryrefslogtreecommitdiff
path: root/per-service/git-servers/roles/apache-website/tasks/apache-website-git.yml
blob: 17857de50bd1ecf43b628cbe257776266bded1d9 (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
---
# All apache related tasks necessary to set up the git main server.

- name: Create Apache root dir
  file: state=directory
        group={{ git_user }}
        owner={{ git_user }}
        mode=0755
        path={{ apache_root }}/{{ git_host }}

- name: Install Apache git-http-backend suexec script
  template: src=git-http-backend.cgi
            dest={{ apache_root }}/{{ git_host }}/git-http-backend.cgi
            owner={{ git_user }}
            group={{ git_user }}
            mode=0550
  when: hosttype in ["git-main", "git-slave"] and server_access == "public"

- name: Install Apache gitweb suexec script
  template: src=gitweb.cgi
            dest={{ apache_root }}/{{ git_host }}/gitweb.cgi
            owner={{ git_user }}
            group={{ git_user }}
            mode=0550
  when: hosttype in ["git-main", "git-slave"]