You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
---
|
|
|
|
- name: Install etckeeper
|
|
|
|
dnf: name={{ item }} state=present
|
|
|
|
with_items:
|
|
|
|
- git
|
|
|
|
- etckeeper
|
|
|
|
when: ansible_distribution == 'Fedora'
|
|
|
|
- name: Install etckeeper
|
|
|
|
apt: name={{ item }} state=present
|
|
|
|
with_items:
|
|
|
|
- git
|
|
|
|
- etckeeper
|
|
|
|
when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
|
|
|
|
- name: "etckeeper: Configure"
|
|
|
|
copy: src=etckeeper.conf.{{ ansible_distribution }}
|
|
|
|
dest=/etc/etckeeper/etckeeper.conf
|
|
|
|
- file: path=/etc/.bzr state=absent
|
|
|
|
- name: "etckeeper: Initialize"
|
|
|
|
command: etckeeper init creates=/etc/.git/
|