[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
parent
5324bd240d
commit
b171d58e4c
|
@ -11,6 +11,17 @@
|
||||||
- ansible_distribution_major_version | int <= 10
|
- ansible_distribution_major_version | int <= 10
|
||||||
- ansible_distribution_release != "bullseye"
|
- 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
|
- name: Install borgbackup
|
||||||
apt:
|
apt:
|
||||||
update_cache: true
|
update_cache: true
|
||||||
|
|
Loading…
Reference in New Issue