From f463bb2c1a782b3d8b0a47ba58ac368965558aec Mon Sep 17 00:00:00 2001 From: Eric Miller Date: Mon, 5 Sep 2022 17:55:21 -0500 Subject: [PATCH] Download apt key directly Fixes issue #372 --- tasks/setup-Debian.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tasks/setup-Debian.yml b/tasks/setup-Debian.yml index e0d7037..da69dae 100644 --- a/tasks/setup-Debian.yml +++ b/tasks/setup-Debian.yml @@ -26,10 +26,11 @@ when: ansible_distribution == 'Ubuntu' and ansible_distribution_version is version('20.04', '>=') - name: Add Docker apt key. - apt_key: + ansible.builtin.get_url: url: "{{ docker_apt_gpg_key }}" - id: 9DC858229FC7DD38854AE2D88D81803C0EBFCD88 - state: present + dest: /etc/apt/trusted.gpg.d/docker.asc + mode: '0644' + force: true register: add_repository_key ignore_errors: "{{ docker_apt_ignore_key_error }}"