role_borgmatic/tasks/installation.yml
2025-04-12 17:18:53 +02:00

40 lines
782 B
YAML

---
# tasks file for borgmatic
- name: Install prerequisites
ansible.builtin.apt:
name:
- pipx
- build-essential
- libacl1-dev
- libacl1
- libb2-dev
- liblz4-dev
- libssl-dev
- libxxhash-dev
- libzstd-dev
- pkg-config
- python3
- python3-dev
- python3-pkgconfig
become: true
- name: Install packages
community.general.pipx:
state: latest
name: "{{ item }}"
install_deps: true
include_injected: true
become: true
environment:
PIPX_HOME: /opt/pipx
PIPX_BIN_DIR: /usr/local/bin
loop:
- borgbackup
- borgmatic
- name: Ensure binary installed by pipx are in the path # noqa: no-changed-when
ansible.builtin.command:
cmd: pipx ensurepath
become: true