summaryrefslogtreecommitdiffstats
path: root/roles/git/hooks/tasks/main.yml
blob: 28050565f138fd4afb86275370707aea95e3a407 (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
32
33
34
35
36
37
38
39
40
41
42
43
---
# tasklist for setting up git mail hooks

- name: install needed packages
  yum: pkg={{item}} state=present
  with_items:
  - git
  - moreutils
  - python-kitchen
  tags:
  - git
  - git/hooks
  - packages

- name: install needed packages from epel testing
  yum: pkg={{item}} state=present enablerepo=epel-testing
  with_items:
  - python-pygit2
  tags:
  - git
  - git/hooks
  - packages

- name: install the git hooks
  copy: src={{item}} dest=/usr/share/git-core/ mode=0755
  with_items:
  - post-receive-fedmsg
  - post-receive-chained
  - post-receive-alternativearch
  - update-block-push-origin
  tags:
  - git
  - git/hooks

- name: install the git mail hooks
  copy: src={{item}} dest=/usr/share/git-core/mail-hooks/ mode=0755
  with_items:
  - util.py
  - git.py
  - gnome-post-receive-email
  tags:
  - git
  - git/hooks