Files
fedora-infra_ansible/roles/git/hooks/tasks/main.yml
Aurélien Bompard d98a7392a5 git/hooks: update package command to not use items
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2019-06-11 17:56:22 +02:00

48 lines
861 B
YAML

---
# tasklist for setting up git mail hooks
- name: install needed packages
package:
state: present
name:
- git
- moreutils
- python-kitchen
tags:
- git
- git/hooks
- packages
- name: install needed packages from epel testing
yum:
state: present
enablerepo: epel-testing
name:
- 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