Fix Docker apt repository signing configuration

This commit is contained in:
Jino Jose 2026-07-12 13:52:02 +05:30
parent 0b2e85d780
commit 55a2a41089

View File

@ -1,13 +1,15 @@
--- ---
# Docker CE + NVIDIA Container Toolkit # Docker CE + NVIDIA Container Toolkit
- name: Add Docker GPG key - name: Add Docker GPG key
apt_key: get_url:
url: https://download.docker.com/linux/ubuntu/gpg 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 - name: Add Docker apt repository
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 state: present
filename: docker filename: docker