role_borgmatic/tasks/installation.yml

28 lines
591 B
YAML
Raw Normal View History

2023-03-06 23:13:54 +00:00
---
# tasks file for borgmatic
- name: Installer python3-pip
ansible.builtin.apt:
name: python3-pip
state: latest
become: true
- name: Installer borgbackup
ansible.builtin.apt:
name: borgbackup
state: latest
default_release: "{{ borgmatic_distribution_release }}-backports"
become: true
- name: Installer le paquet avec pip
ansible.builtin.pip:
name: borgmatic
state: latest
become: true
- name: Créer l'exemple de configuration
ansible.builtin.command:
cmd: generate-borgmatic-config
creates: /etc/borgmatic/config.yaml
become: true