refactor: change method for downloading Docker GPG key to use curl and convert to binary keyring

This commit is contained in:
2025-06-29 23:16:36 -05:00
parent 137853678c
commit fae731b575

View File

@@ -29,11 +29,11 @@
state: directory
mode: "0755"
- name: Download Docker GPG key to keyring path
get_url:
url: https://download.docker.com/linux/ubuntu/gpg
dest: "{{ docker_key_path }}"
mode: "0644"
- name: Download Docker GPG key and convert to binary keyring
shell: |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o {{ docker_key_path }}
args:
creates: "{{ docker_key_path }}"
- name: Stat Docker GPG key file
stat: