Files
fedora-infra_ansible/roles/git/hooks/tasks/main.yml
Mathieu Bridon fed72f7ba1 Add a new git/hooks role
This will be needed to migrate Dist Git from puppet to ansible.
2014-08-26 18:28:25 +00:00

23 lines
504 B
YAML

---
# 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