diff --git a/tasks/setup-Debian.yml b/tasks/setup-Debian.yml index d701135..89c0b6d 100644 --- a/tasks/setup-Debian.yml +++ b/tasks/setup-Debian.yml @@ -11,9 +11,14 @@ name: - apt-transport-https - ca-certificates - - gnupg2 state: present +- name: Ensure gnupg2 dependency is installed. + apt: + name: gnupg2 + state: present + when: ansible_distribution != 'Ubuntu' or ansible_distribution_version is version('20.04', '<') + - name: Add Docker apt key. apt_key: url: "{{ docker_apt_gpg_key }}"