homeserver/roles/mgrote_etckeeper/tasks/main.yml
Michael Grote 154a6d6c41 add etckeeper (#649)
Reviewed-on: #649
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Co-committed-by: Michael Grote <michael.grote@posteo.de>
2024-01-26 15:01:00 +01:00

16 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
...