summaryrefslogtreecommitdiff
path: root/per-service/git-servers/roles/apache-website/tasks/apache-website-git.yml
blob: 7fb7d51aed8f86ae1051ebae5f1890ed7e5abedb (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
26
27
28
29
30
31
---
# 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 }}
  tags:
    - install

- 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"
  tags:
    - install

- 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"]
  tags:
    - install