diff --git a/roles/gitolite/check_fedmsg_hooks/tasks/main.yml b/roles/gitolite/check_fedmsg_hooks/tasks/main.yml new file mode 100644 index 0000000000..0d25329fdf --- /dev/null +++ b/roles/gitolite/check_fedmsg_hooks/tasks/main.yml @@ -0,0 +1,15 @@ +--- +# tasklist for setting up Gitolite Fedmsg checks + +- name: install the needed packages + yum: pkg=git state=present + +- name: install and schedule the script + copy: > + src=check-perms.py dest=/usr/local/bin/git-check-perms + owner=root group=root mode=0755 + cron: > + name="git-check-perms" cron_file="ansible-git-check-perms" + minute=10 hour=0 weekday=3 + user=nobody + job="MAILTO={{git_check_perms_mailto | "root"}} PATH=/usr/bin:/usr/local/bin git check-perms {{ git_basepath | "/git"}} --check=fedmsg-hook"