Skip to content
Snippets Groups Projects
Commit b171d58e authored by ynerant's avatar ynerant Committed by ynerant
Browse files

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


Signed-off-by: ynerant's avatarYohann D'ANELLO <ynerant@crans.org>
parent 5324bd24
No related branches found
No related tags found
1 merge request!214Fix root playbook
...@@ -11,6 +11,17 @@ ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment