|
|
|
@ -21,13 +21,14 @@
|
|
|
|
|
- set_fact: highlevel_package_manager='apt'
|
|
|
|
|
- set_fact: lowlevel_package_manager='dpkg'
|
|
|
|
|
when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
|
|
|
|
|
- name: "etckeeper: Configure"
|
|
|
|
|
- name: "configure"
|
|
|
|
|
template: src=etckeeper.conf.j2
|
|
|
|
|
dest=/etc/etckeeper/etckeeper.conf
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- file: path=/etc/.bzr state=absent
|
|
|
|
|
- name: "etckeeper: Initialize"
|
|
|
|
|
- name: "make sure bzr repository is absent"
|
|
|
|
|
file: path=/etc/.bzr state=absent
|
|
|
|
|
- name: "initialize git repository"
|
|
|
|
|
command: etckeeper init creates=/etc/.git/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -64,7 +65,7 @@
|
|
|
|
|
when: email_configured.stdout != "{{etckeeper_user_email}}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: enable etckeeper commit mails
|
|
|
|
|
- name: "enable commit mails"
|
|
|
|
|
template: src=post-commit-mail.j2
|
|
|
|
|
dest=/etc/.git/hooks/post-commit
|
|
|
|
|
mode=0755
|
|
|
|
|