17 lines
315 B
YAML
17 lines
315 B
YAML
|
---
|
||
|
- name: ensure etckeeper is installed
|
||
|
become: true
|
||
|
ansible.builtin.package:
|
||
|
name:
|
||
|
- etckeeper
|
||
|
- git
|
||
|
state: present
|
||
|
install_recommends: false
|
||
|
|
||
|
- name: ensure repository is initialized
|
||
|
ansible.builtin.command: etckeeper init
|
||
|
args:
|
||
|
chdir: /etc/
|
||
|
creates: /etc/.etckeeper
|
||
|
...
|