mirror of
https://github.com/borgbase/ansible-role-borgbackup.git
synced 2025-10-16 11:14:40 +02:00
Merge pull request #2 from UnitedTraders/ADMIN-6028
ADMIN-6028: added borg mount support
This commit is contained in:
commit
342b0bd8b3
@ -1,4 +1,5 @@
|
||||
---
|
||||
borg_mount_support: false
|
||||
borg_encryption_passphrase: ''
|
||||
borg_exclude_patterns: []
|
||||
borg_one_file_system: true
|
||||
|
@ -16,6 +16,10 @@ argument_specs:
|
||||
type: str
|
||||
required: false
|
||||
description: Dependancy Packages to install borg(backup) and borgmatic.
|
||||
borg_mount_support:
|
||||
type: bool
|
||||
required: false
|
||||
description: Enable support for mounting Borg repositories.
|
||||
borg_distro_packages:
|
||||
type: str
|
||||
required: false
|
||||
|
@ -16,6 +16,12 @@
|
||||
state: enabled
|
||||
when: ansible_distribution == 'Rocky' and ansible_distribution_major_version == "8"
|
||||
|
||||
- name: Install borg mount deps
|
||||
ansible.builtin.package:
|
||||
name: "{{ borg_mount_dependent_packages }}"
|
||||
state: present
|
||||
when: borg_mount_dependent_packages is defined and borg_mount_support
|
||||
|
||||
- name: Install build dependencies
|
||||
ansible.builtin.package:
|
||||
name: "{{ borg_pip_packages }}"
|
||||
@ -30,6 +36,12 @@
|
||||
virtualenv: "{{ borg_venv_path }}"
|
||||
virtualenv_command: "{{ python_bin }} -m venv"
|
||||
|
||||
- name: Install borg mount dependent Python packages
|
||||
ansible.builtin.pip:
|
||||
name: "{{ borg_mount_dependent_python_packages }}"
|
||||
virtualenv: "{{ borg_venv_path }}"
|
||||
when: borg_mount_dependent_python_packages is defined and borg_mount_support
|
||||
|
||||
- name: Install dependent Python packages
|
||||
ansible.builtin.pip:
|
||||
name: "{{ borg_dependent_python_packages }}"
|
||||
|
@ -19,5 +19,11 @@ borg_distro_packages:
|
||||
- borgbackup
|
||||
- borgmatic
|
||||
|
||||
borg_mount_dependent_packages:
|
||||
- fuse3-devel
|
||||
|
||||
borg_mount_dependent_python_packages:
|
||||
- pyfuse3
|
||||
|
||||
python_bin: python3
|
||||
pip_bin: pip3
|
||||
|
@ -3,6 +3,9 @@ borg_dependent_python_packages:
|
||||
- cython
|
||||
- pkgconfig
|
||||
|
||||
borg_mount_dependent_python_packages:
|
||||
- pyfuse3
|
||||
|
||||
borg_python_packages:
|
||||
- name: borgbackup
|
||||
version: "{{ borg_version }}"
|
||||
|
Loading…
Reference in New Issue
Block a user