role_borgmatic/tasks/installation.yml

31 lines
608 B
YAML

---
# tasks file for borgmatic
- name: Installer les prérequis
ansible.builtin.apt:
state: latest
name:
- pipx
- pkg-config
become: true
- name: Installer borgbackup
community.general.pipx:
state: latest
name: borgbackup
install_deps: true
include_injected: true
become: true
- name: Installer borgmatic
community.general.pipx:
state: inject
name: borgbackup
inject_packages: borgmatic
- name: Créer l'exemple de configuration
ansible.builtin.command:
cmd: generate-borgmatic-config
creates: /etc/borgmatic/config.yaml
become: true