Add a new git/hooks role
This will be needed to migrate Dist Git from puppet to ansible.
This commit is contained in:
parent
b121d21d56
commit
fed72f7ba1
6 changed files with 1400 additions and 0 deletions
22
roles/git/hooks/tasks/main.yml
Normal file
22
roles/git/hooks/tasks/main.yml
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue