mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-25 19:11:24 +08:00
This hook doesn't send fedmsg messages on the git.receive topic and does not notify the alternative arch folks about changes Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
45 lines
878 B
YAML
45 lines
878 B
YAML
---
|
|
# tasklist for setting up git mail hooks
|
|
|
|
- name: install needed packages
|
|
package: name={{item}} state=present
|
|
with_items:
|
|
- git
|
|
- moreutils
|
|
- python-kitchen
|
|
tags:
|
|
- git
|
|
- git/hooks
|
|
- packages
|
|
|
|
- name: install needed packages from epel testing
|
|
package: name={{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-chained-forks
|
|
- 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
|