mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-28 20:42:20 +08:00
We already use the update hook for gitolite. This introduces a new update hook, which merely chains the gitolite one, and a new one to block pushes to badly named branches. The new hook was written originally by Till Maas. https://fedorahosted.org/rel-eng/ticket/4071
25 lines
534 B
YAML
25 lines
534 B
YAML
---
|
|
# tasklist for setting up git mail hooks
|
|
|
|
- name: install needed packages
|
|
yum: pkg={{item}} state=present
|
|
with_items:
|
|
- git
|
|
- moreutils
|
|
- python-kitchen
|
|
|
|
- name: install the git hooks
|
|
copy: src={{item}} dest=/usr/share/git-core mode=0755
|
|
with_items:
|
|
- post-receive-fedmsg
|
|
- post-receive-chained
|
|
- update-block-push-origin
|
|
- update-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
|