Fix: apt-key download is failing

Keyserver response times are often too high.
Implement ansible best practice to define "url" and "id".
This commit is contained in:
perfide 2018-11-15 00:00:00 +00:00 committed by Knut Ahlers
parent af6baaf35b
commit 0d75e63b36
Signed by: luzifer
GPG Key ID: DC2729FDD34BE99E

View File

@ -3,7 +3,8 @@
- name: Install apt-key - name: Install apt-key
apt_key: apt_key:
id: 0EBFCD88 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 - name: Ensure https transport to be available
apt: apt: