mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-01 09:50:18 +08:00
We have a gitolite/check_fedmsg_hooks role, which installs a script and schedules it. Turns out, this script does more than just checking the fedmsg hooks, depending on the command-line arguments used when running it. As such, it makes sense to separate it out into its own role, and make the gitolite/check_fedmsg_hooks role (and any other one using the script) depend on it. For example, this script is used for Fedora Hosted (still in Puppet), and will soon be used for a new distgit hook check.
15 lines
441 B
YAML
15 lines
441 B
YAML
---
|
|
# tasklist for setting up a git check script
|
|
#
|
|
# The script implements various checks (even though it is named check-perms,
|
|
# it checks more than perms), and various other roles can then use it in cron
|
|
# jobs, triggered by fedmsg, etc...
|
|
|
|
- name: install the needed packages
|
|
yum: pkg=git state=present
|
|
|
|
- name: install the script
|
|
copy: >
|
|
src=check-perms.py dest=/usr/local/bin/git-check-perms
|
|
owner=root group=root mode=0755
|