refactor: change method for downloading Docker GPG key to use curl and convert to binary keyring
This commit is contained in:
@@ -29,11 +29,11 @@
|
|||||||
state: directory
|
state: directory
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
|
|
||||||
- name: Download Docker GPG key to keyring path
|
- name: Download Docker GPG key and convert to binary keyring
|
||||||
get_url:
|
shell: |
|
||||||
url: https://download.docker.com/linux/ubuntu/gpg
|
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o {{ docker_key_path }}
|
||||||
dest: "{{ docker_key_path }}"
|
args:
|
||||||
mode: "0644"
|
creates: "{{ docker_key_path }}"
|
||||||
|
|
||||||
- name: Stat Docker GPG key file
|
- name: Stat Docker GPG key file
|
||||||
stat:
|
stat:
|
||||||
|
|||||||
Reference in New Issue
Block a user