24 lines
491 B
YAML
24 lines
491 B
YAML
---
|
|
# handlers file for borgmatic
|
|
|
|
- name: Créer le dépôt
|
|
ansible.builtin.command:
|
|
cmd: borgmatic init --encryption repokey-blake2
|
|
become: true
|
|
|
|
- name: Activer la planification
|
|
ansible.builtin.systemd:
|
|
daemon_reload: true
|
|
enabled: true
|
|
state: stopped
|
|
name: borgmatic.timer
|
|
become: true
|
|
|
|
- name: Activer et démarrer le service
|
|
ansible.builtin.systemd:
|
|
daemon_reload: true
|
|
enabled: false
|
|
state: started
|
|
name: borgmatic.service
|
|
become: true
|