Support Borg 1.2.0 (#94)

* Move common Python packages to main.yml, install dependent Python packages first.
This commit is contained in:
Manu 2022-02-28 10:28:37 +04:00 committed by GitHub
parent 29d0c5f480
commit 8429ec5bc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 15 additions and 31 deletions

View File

@ -33,7 +33,13 @@
virtualenv: /opt/borgmatic virtualenv: /opt/borgmatic
virtualenv_command: "{{ python_bin }} -m venv" virtualenv_command: "{{ python_bin }} -m venv"
- name: Install required Python Packages - name: Install dependent Python Packages
pip:
name: "{{ borg_dependent_python_packages }}"
virtualenv: /opt/borgmatic
when: borg_dependent_python_packages is defined
- name: Install main Python Packages
pip: pip:
name: "{{ borg_python_packages }}" name: "{{ borg_python_packages }}"
virtualenv: /opt/borgmatic virtualenv: /opt/borgmatic

View File

@ -5,10 +5,5 @@ borg_packages:
- openssh - openssh
- cronie - cronie
borg_python_packages:
- cython
- borgbackup
- borgmatic
python_bin: python3 python_bin: python3
pip_bin: pip3 pip_bin: pip3

View File

@ -7,6 +7,7 @@ borg_packages:
- python3-setuptools - python3-setuptools
- python3-dev - python3-dev
- python3-pip - python3-pip
- python3-pkgconfig
- python3-msgpack - python3-msgpack
- python3-venv - python3-venv
- openssh-client - openssh-client
@ -14,8 +15,3 @@ borg_packages:
python_bin: python3 python_bin: python3
pip_bin: pip3 pip_bin: pip3
borg_python_packages:
- cython
- borgbackup
- borgmatic

View File

@ -15,8 +15,3 @@ borg_packages:
python_bin: python3 python_bin: python3
pip_bin: pip3 pip_bin: pip3
borg_python_packages:
- cython
- borgbackup
- borgmatic

View File

@ -15,8 +15,3 @@ borg_packages:
python_bin: python3 python_bin: python3
pip_bin: pip3 pip_bin: pip3
borg_python_packages:
- cython
- borgbackup
- borgmatic

View File

@ -15,8 +15,3 @@ borg_packages:
python_bin: python3 python_bin: python3
pip_bin: pip3 pip_bin: pip3
borg_python_packages:
- cython
- borgbackup
- borgmatic

View File

@ -14,8 +14,3 @@ borg_packages:
python_bin: python3 python_bin: python3
pip_bin: pip3 pip_bin: pip3
borg_python_packages:
- cython
- borgbackup
- borgmatic

7
vars/main.yml Normal file
View File

@ -0,0 +1,7 @@
---
borg_dependent_python_packages:
- cython
- pkgconfig
borg_python_packages:
- borgbackup
- borgmatic