mirror of
https://github.com/geerlingguy/ansible-role-docker.git
synced 2024-12-21 19:07:06 +01:00
Do not install gnupg2 on Ubuntu 20.04 and superior
This commit is contained in:
parent
6d4324900d
commit
054e74268e
@ -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 }}"
|
||||
|
Loading…
Reference in New Issue
Block a user