From a27f805d2d79ed081a23bab77c8d86909fe9bd98 Mon Sep 17 00:00:00 2001 From: Robin Schneider Date: Sun, 13 Sep 2020 23:51:31 +0200 Subject: [PATCH] Ensure that buster-backports will be absent on Debian 11+ --- tasks/setup-debian-vanilla.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tasks/setup-debian-vanilla.yml b/tasks/setup-debian-vanilla.yml index c18bc1e..6a6ce06 100644 --- a/tasks/setup-debian-vanilla.yml +++ b/tasks/setup-debian-vanilla.yml @@ -2,9 +2,8 @@ - name: (Debian) Add WireGuard repository on buster apt_repository: repo: "deb http://deb.debian.org/debian buster-backports main" - state: present + state: "{{ 'present' if (ansible_distribution_version | int <= 10) else 'absent' }}" update_cache: yes - when: ansible_distribution_version | int <= 10 tags: - wg-install