roles/common: Use experimental Tarsnap on Debian buster

Tarsnap currently provides experimental packages for Debian Buster.

See: https://www.tarsnap.com/pkg-deb.html#experimental
This commit is contained in:
Alan Orth 2019-07-19 12:07:27 +03:00
parent e124cac945
commit c148da73e7
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
2 changed files with 11 additions and 2 deletions

View File

@ -6,6 +6,14 @@
- name: Add GPG key for Tarsnap
apt_key: id=0x6D97F5A4CA38CF33 url=https://pkg.tarsnap.com/tarsnap-deb-packaging-key.asc state=present
when: ansible_distribution_release != 'buster'
register: add_tarsnap_apt_key
# Tarsnap currently provides experimental packages for Debian 10 "buster"
# See: https://www.tarsnap.com/pkg-deb.html#experimental
- name: Add GPG key for Tarsnap experimental
apt_key: id=0xF77F1024ECFAF293 url=https://pkg.tarsnap.com/experimental/tarsnap-EXPERIMENTAL-deb-packaging-key.asc state=present
when: ansible_distribution == 'Debian' and ansible_distribution_release == 'buster'
register: add_tarsnap_apt_key
- name: Update apt cache

View File

@ -1,6 +1,7 @@
{% if ansible_distribution_release == 'buster' %}
# there are no tarsnap packages for Debian 10 "buster" yet, so use Debian 9's
deb [arch=amd64] https://pkg.tarsnap.com/deb/stretch ./
# Tarsnap currently provides experimental packages for Debian 10 "buster"
# See: https://www.tarsnap.com/pkg-deb.html#experimental
deb [arch=amd64] http://pkg.tarsnap.com/experimental/deb/buster ./
{% else %}
deb [arch=amd64] https://pkg.tarsnap.com/deb/{{ ansible_distribution_release }} ./
{% endif %}