mirror of
https://github.com/geerlingguy/ansible-role-docker.git
synced 2024-12-21 19:07:06 +01:00
Merge pull request #373 from sosheskaz/fix-gpg
Download apt key directly
This commit is contained in:
commit
6f636dc579
@ -26,10 +26,11 @@
|
|||||||
when: ansible_distribution == 'Ubuntu' and ansible_distribution_version is version('20.04', '>=')
|
when: ansible_distribution == 'Ubuntu' and ansible_distribution_version is version('20.04', '>=')
|
||||||
|
|
||||||
- name: Add Docker apt key.
|
- name: Add Docker apt key.
|
||||||
apt_key:
|
ansible.builtin.get_url:
|
||||||
url: "{{ docker_apt_gpg_key }}"
|
url: "{{ docker_apt_gpg_key }}"
|
||||||
id: 9DC858229FC7DD38854AE2D88D81803C0EBFCD88
|
dest: /etc/apt/trusted.gpg.d/docker.asc
|
||||||
state: present
|
mode: '0644'
|
||||||
|
force: true
|
||||||
register: add_repository_key
|
register: add_repository_key
|
||||||
ignore_errors: "{{ docker_apt_ignore_key_error }}"
|
ignore_errors: "{{ docker_apt_ignore_key_error }}"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user