summaryrefslogtreecommitdiff
path: root/roles/gitserver/tasks/as_gituser.yaml
blob: 9c4b67c1f5991d41fc184c53f669ae82c91c7121 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
---
- name: Put gitolite.rc
  copy:
    src=gitolite.rc
    dest=/var/lib/gitolite/.gitolite.rc

- name: Stat gitolite dir
  stat: path=/var/lib/gitolite/.gitolite/conf
  register: gitolite_dir

- name: Initialize gitolite and restore backup
  include: restore_gitolite.yaml
  when: not gitolite_dir.stat.exists

- name: Put Post-update-hook for website
  template: dest=/var/lib/gitolite/repositories/website.git/hooks/post-update
            mode=0755
            src=website-post-update-hook.j2