Ensure that buster-backports will be absent on Debian 11+
This commit is contained in:
parent
2309abf09e
commit
a27f805d2d
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue