initial commit
This commit is contained in:
commit
15d8746cbe
5 changed files with 108 additions and 0 deletions
19
tasks/etckeeper.yml
Normal file
19
tasks/etckeeper.yml
Normal file
|
@ -0,0 +1,19 @@
|
|||
---
|
||||
- name: Install etckeeper
|
||||
dnf: name={{ item }} state=latest
|
||||
with_items:
|
||||
- git
|
||||
- etckeeper
|
||||
when: ansible_distribution == 'Fedora'
|
||||
- name: Install etckeeper
|
||||
apt: name={{ item }} state=latest
|
||||
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/
|
2
tasks/main.yml
Normal file
2
tasks/main.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
---
|
||||
- include: etckeeper.yml tags=etckeeper
|
Loading…
Add table
Add a link
Reference in a new issue