add an optional post-commit hook to send a commit email

This commit is contained in:
neingeist 2016-08-25 20:50:55 +02:00
parent 2a7e40c3d6
commit e642e54912
3 changed files with 25 additions and 0 deletions

View file

@ -29,3 +29,9 @@
- file: path=/etc/.bzr state=absent
- name: "etckeeper: Initialize"
command: etckeeper init creates=/etc/.git/
- name: enable etckeeper commit mails
template: src=post-commit-mail.j2
dest=/etc/.git/hooks/post-commit
mode=0755
when: etckeeper_mailto is defined