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