Files
fedora-infra_ansible/roles/git/hooks/tasks/main.yml
Aurélien Bompard 64da337e67 Use fedora-messaging-git-hook on dist-git
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2023-12-04 17:58:49 +01:00

40 lines
737 B
YAML

---
# tasklist for setting up git mail hooks
- name: install needed packages
package:
state: present
name:
- git
#- moreutils
- python3-kitchen
- python3-pygit2
- fedora-messaging
- fedora-messaging-git-hook
tags:
- git
- git/hooks
- packages
- name: install the git hooks
copy: src={{item}} dest=/usr/share/git-core/ mode=0755
with_items:
- 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