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

master
Robin Schneider 4 years ago
parent 2309abf09e
commit a27f805d2d
No known key found for this signature in database
GPG Key ID: A81E8006DC95EFE6

@ -2,9 +2,8 @@
- name: (Debian) Add WireGuard repository on buster - name: (Debian) Add WireGuard repository on buster
apt_repository: apt_repository:
repo: "deb http://deb.debian.org/debian buster-backports main" 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 update_cache: yes
when: ansible_distribution_version | int <= 10
tags: tags:
- wg-install - wg-install

Loading…
Cancel
Save