From 02306dade953d41e9a4ac9f689bfc7ad21f3b5af Mon Sep 17 00:00:00 2001 From: "pulsar89.5" Date: Mon, 18 Dec 2023 17:12:52 +0100 Subject: [PATCH] feat: Compliant with bookworm --- tasks/installation.yml | 33 +++++++++++++++++++++++---------- 1 file changed, 23 insertions(+), 10 deletions(-) diff --git a/tasks/installation.yml b/tasks/installation.yml index 8774963..6205f89 100644 --- a/tasks/installation.yml +++ b/tasks/installation.yml @@ -1,24 +1,37 @@ --- # 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 + community.general.pipx: state: latest - default_release: "{{ borgmatic_distribution_release }}-backports" + name: borgbackup + install_deps: true + include_injected: true become: true -- name: Installer le paquet avec pip - ansible.builtin.pip: - name: borgmatic - state: latest - 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: