mirror of
https://github.com/borgbase/ansible-role-borgbackup.git
synced 2025-11-16 01:20:10 +01: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_encryption_passphrase: ''
|
||||||
borg_exclude_patterns: []
|
borg_exclude_patterns: []
|
||||||
borg_one_file_system: true
|
borg_one_file_system: true
|
||||||
|
|||||||
@ -16,6 +16,10 @@ argument_specs:
|
|||||||
type: str
|
type: str
|
||||||
required: false
|
required: false
|
||||||
description: Dependancy Packages to install borg(backup) and borgmatic.
|
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:
|
borg_distro_packages:
|
||||||
type: str
|
type: str
|
||||||
required: false
|
required: false
|
||||||
|
|||||||
@ -16,6 +16,12 @@
|
|||||||
state: enabled
|
state: enabled
|
||||||
when: ansible_distribution == 'Rocky' and ansible_distribution_major_version == "8"
|
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
|
- name: Install build dependencies
|
||||||
ansible.builtin.package:
|
ansible.builtin.package:
|
||||||
name: "{{ borg_pip_packages }}"
|
name: "{{ borg_pip_packages }}"
|
||||||
@ -30,6 +36,12 @@
|
|||||||
virtualenv: "{{ borg_venv_path }}"
|
virtualenv: "{{ borg_venv_path }}"
|
||||||
virtualenv_command: "{{ python_bin }} -m venv"
|
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
|
- name: Install dependent Python packages
|
||||||
ansible.builtin.pip:
|
ansible.builtin.pip:
|
||||||
name: "{{ borg_dependent_python_packages }}"
|
name: "{{ borg_dependent_python_packages }}"
|
||||||
|
|||||||
@ -19,5 +19,11 @@ borg_distro_packages:
|
|||||||
- borgbackup
|
- borgbackup
|
||||||
- borgmatic
|
- borgmatic
|
||||||
|
|
||||||
|
borg_mount_dependent_packages:
|
||||||
|
- fuse3-devel
|
||||||
|
|
||||||
|
borg_mount_dependent_python_packages:
|
||||||
|
- pyfuse3
|
||||||
|
|
||||||
python_bin: python3
|
python_bin: python3
|
||||||
pip_bin: pip3
|
pip_bin: pip3
|
||||||
|
|||||||
@ -3,6 +3,9 @@ borg_dependent_python_packages:
|
|||||||
- cython
|
- cython
|
||||||
- pkgconfig
|
- pkgconfig
|
||||||
|
|
||||||
|
borg_mount_dependent_python_packages:
|
||||||
|
- pyfuse3
|
||||||
|
|
||||||
borg_python_packages:
|
borg_python_packages:
|
||||||
- name: borgbackup
|
- name: borgbackup
|
||||||
version: "{{ borg_version }}"
|
version: "{{ borg_version }}"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user