Add a new git/hooks role

This will be needed to migrate Dist Git from puppet to ansible.
This commit is contained in:
Mathieu Bridon 2014-07-04 17:59:44 +02:00 committed by Kevin Fenzi
parent b121d21d56
commit fed72f7ba1
6 changed files with 1400 additions and 0 deletions

View file

@ -0,0 +1,22 @@
---
# tasklist for setting up git mail hooks
- name: install needed packages
yum: pkg={{item}} state=present
with_items:
- git
- moreutils
# This requires the fedmsg/base role
- name: install the git hooks
copy: src={{item}} dest=/usr/share/git-core mode=0755
with_items:
- post-receive-fedmsg
- post-receive-chained
- 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