mirror of
https://github.com/geerlingguy/ansible-role-docker.git
synced 2024-11-18 19:10:43 +01:00
Add gnupg for systems >= Ubuntu 20.04
This commit is contained in:
parent
054e74268e
commit
09df8f5688
@ -13,12 +13,18 @@
|
||||
- ca-certificates
|
||||
state: present
|
||||
|
||||
- name: Ensure gnupg2 dependency is installed.
|
||||
- name: Ensure additionnal dependencies are installed (on Ubuntu < 20.04 and any other systems).
|
||||
apt:
|
||||
name: gnupg2
|
||||
state: present
|
||||
when: ansible_distribution != 'Ubuntu' or ansible_distribution_version is version('20.04', '<')
|
||||
|
||||
- name: Ensure additionnal dependencies are installed (on Ubuntu >= 20.04).
|
||||
apt:
|
||||
name: gnupg
|
||||
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