Ensure that buster-backports will be absent on Debian 11+

This commit is contained in:
Robin Schneider 2020-09-13 23:51:31 +02:00
parent 2309abf09e
commit a27f805d2d
No known key found for this signature in database
GPG key ID: A81E8006DC95EFE6

View file

@ -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