diff --git a/tasks/setup-Debian.yml b/tasks/setup-Debian.yml index 23a49ae..88580b3 100644 --- a/tasks/setup-Debian.yml +++ b/tasks/setup-Debian.yml @@ -22,11 +22,13 @@ ignore_errors: "{{ docker_apt_ignore_key_error }}" - name: Ensure curl is present (on older systems without SNI). - package: name=curl state=present + get_url: + url: https://download.docker.com/linux/ubuntu/gpg + dest: /tmp/docker-repo-key when: add_repository_key is failed - name: Add Docker apt key (alternative for older systems without SNI). - shell: "curl -sSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -" + shell: sudo apt-key add /tmp/docker-repo-key args: warn: false when: add_repository_key is failed