Do not install gnupg2 on Ubuntu 20.04 and superior

This commit is contained in:
toxinu 2021-03-23 15:53:43 +09:00
parent 6d4324900d
commit 054e74268e
No known key found for this signature in database
GPG Key ID: B41F53FEBA8E5BD3

View File

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