From fae731b5753ffea7da3aa0e4b5c10fcd6f4791f5 Mon Sep 17 00:00:00 2001 From: Ryan Hamilton Date: Sun, 29 Jun 2025 23:16:36 -0500 Subject: [PATCH] refactor: change method for downloading Docker GPG key to use curl and convert to binary keyring --- playbooks/install-standard-docker.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/playbooks/install-standard-docker.yml b/playbooks/install-standard-docker.yml index d3270a3..b6ac025 100644 --- a/playbooks/install-standard-docker.yml +++ b/playbooks/install-standard-docker.yml @@ -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: