diff options
| author | Mathieu Bridon <bochecha@fedoraproject.org> | 2014-07-04 17:59:44 +0200 |
|---|---|---|
| committer | Kevin Fenzi <kevin@scrye.com> | 2014-08-26 18:28:25 +0000 |
| commit | fed72f7ba11ee89520f289498bd85aa23b87e69a (patch) | |
| tree | b39c9f21f78eff928038af12ec10137b2a11d851 /roles/git/hooks/tasks | |
| parent | b121d21d569d3cddf0a95183b24afb4be6eba690 (diff) | |
| download | ansible-fed72f7ba11ee89520f289498bd85aa23b87e69a.tar.gz ansible-fed72f7ba11ee89520f289498bd85aa23b87e69a.tar.xz ansible-fed72f7ba11ee89520f289498bd85aa23b87e69a.zip | |
Add a new git/hooks role
This will be needed to migrate Dist Git from puppet to ansible.
Diffstat (limited to 'roles/git/hooks/tasks')
| -rw-r--r-- | roles/git/hooks/tasks/main.yml | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/roles/git/hooks/tasks/main.yml b/roles/git/hooks/tasks/main.yml new file mode 100644 index 000000000..6cf6b9d0f --- /dev/null +++ b/roles/git/hooks/tasks/main.yml @@ -0,0 +1,22 @@ +--- +# tasklist for setting up git mail hooks + +- name: install needed packages + yum: pkg={{item}} state=present + with_items: + - git + - moreutils + +# This requires the fedmsg/base role +- name: install the git hooks + copy: src={{item}} dest=/usr/share/git-core mode=0755 + with_items: + - post-receive-fedmsg + - post-receive-chained + +- 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 |
