diff options
| author | Mathieu Bridon <bochecha@fedoraproject.org> | 2014-09-23 14:14:24 +0200 |
|---|---|---|
| committer | Pierre-Yves Chibon <pingou@pingoured.fr> | 2014-10-27 10:48:12 +0100 |
| commit | 16ffb744be3e4b99cc1f3170b7ea76abdfbe7a53 (patch) | |
| tree | 3f191b6eb9e910aa560a991db9bd7b53bc6269ad /roles/git/checks/tasks | |
| parent | 7ab3ff28179a07037fef4207b7b5446c45a8479c (diff) | |
| download | ansible-16ffb744be3e4b99cc1f3170b7ea76abdfbe7a53.tar.gz ansible-16ffb744be3e4b99cc1f3170b7ea76abdfbe7a53.tar.xz ansible-16ffb744be3e4b99cc1f3170b7ea76abdfbe7a53.zip | |
Rearrange some tasks
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.
Diffstat (limited to 'roles/git/checks/tasks')
| -rw-r--r-- | roles/git/checks/tasks/main.yml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/roles/git/checks/tasks/main.yml b/roles/git/checks/tasks/main.yml new file mode 100644 index 000000000..b16a3972c --- /dev/null +++ b/roles/git/checks/tasks/main.yml @@ -0,0 +1,14 @@ +--- +# 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 |
