feat: Compliant with bookworm
This commit is contained in:
parent
0fc8eb6a4b
commit
2dfd3a4396
@ -1,27 +1,42 @@
|
||||
---
|
||||
# tasks file for borgmatic
|
||||
|
||||
- name: Installer python3-pip
|
||||
- name: Installer les prérequis
|
||||
ansible.builtin.apt:
|
||||
name: python3-pip
|
||||
state: latest
|
||||
name:
|
||||
- pipx
|
||||
- build-essential
|
||||
- libacl1-dev
|
||||
- libacl1
|
||||
- libb2-dev
|
||||
- liblz4-dev
|
||||
- libssl-dev
|
||||
- libzstd-dev
|
||||
- pkg-config
|
||||
- python3
|
||||
- python3-dev
|
||||
- python3-pkgconfig
|
||||
become: true
|
||||
|
||||
- name: Installer borgbackup
|
||||
ansible.builtin.apt:
|
||||
name: borgbackup
|
||||
- name: Installer les paquets
|
||||
community.general.pipx:
|
||||
state: latest
|
||||
default_release: "{{ borgmatic_distribution_release }}-backports"
|
||||
name: "{{ item }}"
|
||||
install_deps: true
|
||||
include_injected: true
|
||||
become: true
|
||||
loop:
|
||||
- borgbackup
|
||||
- borgmatic
|
||||
|
||||
- name: Installer le paquet avec pip
|
||||
ansible.builtin.pip:
|
||||
name: borgmatic
|
||||
state: latest
|
||||
- name: S'assurer que les paquets sont inclus dans le path
|
||||
ansible.builtin.command:
|
||||
cmd: pipx ensurepath
|
||||
become: true
|
||||
|
||||
- name: Créer l'exemple de configuration
|
||||
ansible.builtin.command:
|
||||
cmd: generate-borgmatic-config
|
||||
cmd: /root/.local/bin/generate-borgmatic-config
|
||||
creates: /etc/borgmatic/config.yaml
|
||||
become: true
|
||||
|
@ -6,10 +6,12 @@ repositories:
|
||||
path: {{ repository.path }}
|
||||
{% endfor %}
|
||||
|
||||
{% if borgmatic_exclude_patterns | length > 0 %}
|
||||
exclude_patterns:
|
||||
{% for pattern in borgmatic_exclude_patterns %}
|
||||
- {{ pattern }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
source_directories:
|
||||
{% for directory in borgmatic_source_directories %}
|
||||
|
Loading…
Reference in New Issue
Block a user