Commit 0b1e6e9a by Jocelyn Delalande

borg-common: Add Debian Stretch support

parent 41486d4c
......@@ -13,7 +13,7 @@ gpg/checksum signature is possible on packages.
borgbackup is now available in debian backports, so you have two installation options:
Install via apt (default and recommended way, jessie only)
Install via apt (default and recommended way, jessie and stretch)
borg_install_method: apt
......
- name: Ensure backports repository is enabled
- name: Ensure backports repository is enabled (Jessie only)
apt_repository: repo="deb http://httpredir.debian.org/debian jessie-backports main"
when: ansible_lsb.codename == 'jessie'
- name: Install borgbackup
- name: Install borgbackup (from jessie-backports)
apt: pkg=borgbackup cache_valid_time=1800 default_release=jessie-backports
when: ansible_lsb.codename == 'jessie'
- name: Install borgbackup (from main)
apt: pkg=borgbackup cache_valid_time=1800
when: ansible_lsb.codename == 'stretch'
- name: Remove pip-installed borgbackup symlink
file: path=/usr/local/bin/borg state=absent
......
......@@ -4,4 +4,4 @@
- name: Install borg via apt
import_tasks: apt_install.yml
when: (borg_install_method == 'apt') and (ansible_lsb.codename == 'jessie')
when: (borg_install_method == 'apt')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment