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