[borg] Don't bin borgbackup from bullseye if we are already under bullseye

Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
certbot_on_virtu
Yohann D'ANELLO 2021-02-23 14:31:31 +01:00 committed by ynerant
parent 5324bd240d
commit b171d58e4c
1 changed files with 11 additions and 0 deletions

View File

@ -11,6 +11,17 @@
- ansible_distribution_major_version | int <= 10
- ansible_distribution_release != "bullseye"
- name: Don't pin borgmatic if we are on bullseye
file:
path: "/etc/apt/{{ item }}"
state: absent
loop:
- sources.list.d/bullseye.list
- preferences.d/borgmatic-bullseye
when:
- ansible_distribution == "Debian"
- ansible_distribution_release == "bullseye"
- name: Install borgbackup
apt:
update_cache: true