homeserver/roles/mgrote_etckeeper/tasks/main.yml

17 lines
315 B
YAML
Raw Normal View History

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