role_borgmatic/tasks/installation.yml

29 lines
571 B
YAML
Raw Normal View History

2023-03-06 23:13:54 +00:00
---
# tasks file for borgmatic
2023-12-18 16:12:52 +00:00
- name: Installer pipx
2023-03-06 23:13:54 +00:00
ansible.builtin.apt:
2023-12-18 16:12:52 +00:00
name: pipx
2023-03-06 23:13:54 +00:00
state: latest
become: true
- name: Installer borgbackup
2023-12-18 16:12:52 +00:00
community.general.pipx:
2023-03-06 23:13:54 +00:00
name: borgbackup
state: latest
2023-12-18 16:12:52 +00:00
install_deps: true
include_injected: true
2023-03-06 23:13:54 +00:00
become: true
2023-12-18 16:12:52 +00:00
- name: Installer borgmatic
community.general.pipx:
name: borgbackuo
state: inject
inject_packages: borgmatic
2023-03-06 23:13:54 +00:00
- name: Créer l'exemple de configuration
ansible.builtin.command:
cmd: generate-borgmatic-config
creates: /etc/borgmatic/config.yaml
become: true