From 0d75e63b36616ba3657770fe156dbafd09c25925 Mon Sep 17 00:00:00 2001 From: perfide Date: Thu, 15 Nov 2018 00:00:00 +0000 Subject: [PATCH] Fix: apt-key download is failing Keyserver response times are often too high. Implement ansible best practice to define "url" and "id". --- tasks/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index 0b7abd4..fa2b0d6 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -3,7 +3,8 @@ - name: Install apt-key apt_key: id: 0EBFCD88 - keyserver: keyserver.ubuntu.com + url: 'https://download.docker.com/linux/{{ ansible_distribution | lower }}/gpg' + keyring: /etc/apt/trusted.gpg.d/docker.gpg - name: Ensure https transport to be available apt: