Files
fedora-infra_ansible/roles/git/hooks/tasks/main.yml
Ryan Lerch 25391e95b7 ansiblelint fixes - fqcn[action-core] - package to ansible.builtin.package
Replaces many references to  package: with ansible.builtin.package

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 11:28:00 +10:00

40 lines
786 B
YAML

---
# tasklist for setting up git mail hooks
- name: Install needed packages
ansible.builtin.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
ansible.builtin.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
ansible.builtin.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