diff --git a/ansible/roles/vm_set/tasks/docker.yml b/ansible/roles/vm_set/tasks/docker.yml index bec6ba2bd6d..c6936bf2882 100644 --- a/ansible/roles/vm_set/tasks/docker.yml +++ b/ansible/roles/vm_set/tasks/docker.yml @@ -20,9 +20,7 @@ when: host_distribution_version.stdout == "18.04" - name: Add docker official GPG key - apt_key: - url: https://download.docker.com/linux/ubuntu/gpg - state: present + shell: "curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -" become: yes environment: "{{ proxy_env | default({}) }}"