role_borgmatic/handlers/main.yml

24 lines
491 B
YAML
Raw Normal View History

2023-03-06 23:13:54 +00:00
---
# handlers file for borgmatic
- name: Créer le dépôt
ansible.builtin.command:
2023-05-26 15:20:21 +00:00
cmd: borgmatic init --encryption repokey-blake2
2023-03-06 23:13:54 +00:00
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