adding fuse support optional
This commit is contained in:
parent
0bca4c0f2c
commit
4cff5b14c9
@ -82,6 +82,7 @@ $ git clone https://github.com/borgbase/ansible-role-borgbackup.git roles/ansibl
|
||||
- `borgmatic_cron_checks_day`: Day when cron job for infrequent checks will run. Defaults to `{{ 28 | random }}`
|
||||
- `borgmatic_cron_checks_hour`: Hour when cron job for infrequent checks will run. Defaults to `{{ range(7, 24) | random }}`
|
||||
- `borgmatic_cron_checks_minute`: Minute when cron job for infrequent checks will run. Defaults to `{{ 59 | random }}`
|
||||
- `borgmatic_fuse_support`: Adds borgmatics fuse mount support. Defaults to `false`
|
||||
|
||||
|
||||
### Optional Arguments for [BorgBase.com](https://www.borgbase.com) repository auto creation
|
||||
|
@ -43,3 +43,4 @@ borgmatic_cron_minute: "{{ 59 | random(seed=inventory_hostname) }}"
|
||||
borgmatic_cron_checks_day: "{{ range(1, 28) | random(seed=inventory_hostname) }}"
|
||||
borgmatic_cron_checks_hour: "{{ range(9, 24) | random(seed=inventory_hostname) }}"
|
||||
borgmatic_cron_checks_minute: "{{ 59 | random(seed=inventory_hostname) }}"
|
||||
borgmatic_fuse_support: "false"
|
@ -19,6 +19,12 @@
|
||||
name: "{{ borg_packages }}"
|
||||
state: present
|
||||
|
||||
- name: adding fuse support
|
||||
package:
|
||||
name: "{{ borg_packages_fuse }}"
|
||||
state: present
|
||||
when: borgmatic_fuse_support
|
||||
|
||||
- name: Create virtualenv for borg
|
||||
pip:
|
||||
name: pip-tools
|
||||
@ -29,7 +35,13 @@
|
||||
pip:
|
||||
name: "{{ borg_python_packages }}"
|
||||
virtualenv: /opt/borgmatic
|
||||
when: borg_python_packages is defined
|
||||
when: borg_python_packages is defined and not borgmatic_fuse_support
|
||||
|
||||
- name: Install required Python Packages with fuse support
|
||||
pip:
|
||||
name: "{{ borg_python_packages_fuse }}"
|
||||
virtualenv: /opt/borgmatic
|
||||
when: borg_python_packages is defined and borgmatic_fuse_support
|
||||
|
||||
- name: Create borgmatic command in /usr/local/bin
|
||||
copy:
|
||||
|
@ -10,5 +10,14 @@ borg_python_packages:
|
||||
- borgbackup
|
||||
- borgmatic
|
||||
|
||||
borg_packages_fuse:
|
||||
- fuse2
|
||||
|
||||
borg_python_packages_fuse:
|
||||
- cython
|
||||
- borgbackup[fuse]
|
||||
- borgmatic
|
||||
- python-llfuse
|
||||
|
||||
python_bin: python3
|
||||
pip_bin: pip3
|
||||
pip_bin: pip3
|
@ -10,13 +10,20 @@ borg_packages:
|
||||
- python3-msgpack
|
||||
- python3-venv
|
||||
- openssh-client
|
||||
- libfuse-dev
|
||||
- cron
|
||||
|
||||
python_bin: python3
|
||||
pip_bin: pip3
|
||||
|
||||
borg_python_packages:
|
||||
- cython
|
||||
- borgbackup
|
||||
- borgmatic
|
||||
|
||||
borg_packages_fuse:
|
||||
- libfuse-dev
|
||||
|
||||
borg_python_packages_fuse:
|
||||
- cython
|
||||
- borgbackup[fuse]
|
||||
- borgmatic
|
||||
|
||||
python_bin: python3
|
||||
pip_bin: pip3
|
@ -13,10 +13,20 @@ borg_packages:
|
||||
- openssh-clients
|
||||
- cronie
|
||||
|
||||
python_bin: python3
|
||||
pip_bin: pip3
|
||||
|
||||
borg_python_packages:
|
||||
- cython
|
||||
- borgbackup
|
||||
- borgmatic
|
||||
|
||||
borg_packages_fuse:
|
||||
- fuse-devel
|
||||
- fuse
|
||||
- pkgconfig
|
||||
|
||||
borg_python_packages_fuse:
|
||||
- cython
|
||||
- borgbackup[fuse]
|
||||
- borgmatic
|
||||
|
||||
python_bin: python3
|
||||
pip_bin: pip3
|
@ -13,10 +13,20 @@ borg_packages:
|
||||
- openssh-clients
|
||||
- cronie
|
||||
|
||||
python_bin: python3
|
||||
pip_bin: pip3
|
||||
|
||||
borg_python_packages:
|
||||
- cython
|
||||
- borgbackup
|
||||
- borgmatic
|
||||
|
||||
borg_packages_fuse:
|
||||
- fuse-devel
|
||||
- fuse
|
||||
- pkgconfig
|
||||
|
||||
borg_python_packages_fuse:
|
||||
- cython
|
||||
- borgbackup[fuse]
|
||||
- borgmatic
|
||||
|
||||
python_bin: python3
|
||||
pip_bin: pip3
|
@ -12,10 +12,20 @@ borg_packages:
|
||||
- openssh-clients
|
||||
- cronie
|
||||
|
||||
python_bin: python3
|
||||
pip_bin: pip3
|
||||
|
||||
borg_python_packages:
|
||||
- cython
|
||||
- borgbackup
|
||||
- borgmatic
|
||||
|
||||
borg_packages_fuse:
|
||||
- fuse-devel
|
||||
- fuse
|
||||
- pkgconfig
|
||||
|
||||
borg_python_packages_fuse:
|
||||
- cython
|
||||
- borgbackup[fuse]
|
||||
- borgmatic
|
||||
|
||||
python_bin: python3
|
||||
pip_bin: pip3
|
Loading…
Reference in New Issue
Block a user