From 55a2a410891edf2916c7fa1196fca2d233145c7a Mon Sep 17 00:00:00 2001 From: Jino Jose Date: Sun, 12 Jul 2026 13:52:02 +0530 Subject: [PATCH] Fix Docker apt repository signing configuration --- ansible/roles/docker/tasks/main.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ansible/roles/docker/tasks/main.yml b/ansible/roles/docker/tasks/main.yml index d64eb20..7f1f827 100644 --- a/ansible/roles/docker/tasks/main.yml +++ b/ansible/roles/docker/tasks/main.yml @@ -1,13 +1,15 @@ --- # Docker CE + NVIDIA Container Toolkit - name: Add Docker GPG key - apt_key: + get_url: url: https://download.docker.com/linux/ubuntu/gpg - state: present + dest: /etc/apt/keyrings/docker.asc + mode: "0644" + force: yes - name: Add Docker apt repository apt_repository: - repo: "deb [arch=amd64] https://download.docker.com/linux/ubuntu {{ ansible_distribution_release }} stable" + repo: "deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu {{ ansible_distribution_release }} stable" state: present filename: docker