This commit is contained in:
2026-05-27 00:09:03 +02:00
parent b47985e508
commit 535423985a
+12 -8
View File
@@ -86,16 +86,20 @@
- name: Download Docker GPG key - name: Download Docker GPG key
shell: | shell: |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | \ curl -fsSL https://download.docker.com/linux/debian/gpg | \
sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
- name: Add Docker repository (Ubuntu 24 safe) - name: Add Docker repository source file
apt_repository: ansible.builtin.copy:
repo: "deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.gpg] \ dest: /etc/apt/sources.list.d/docker.sources
https://download.docker.com/linux/ubuntu noble stable" mode: '0644'
state: present content: |
filename: docker Types: deb
update_cache: no URIs: https://download.docker.com/linux/debian
Suites: {{ ansible_distribution_release }}
Components: stable
Architectures: {{ 'amd64' if ansible_architecture == 'x86_64' else ansible_architecture }}
Signed-By: /etc/apt/keyrings/docker.asc
- name: Update apt cache - name: Update apt cache
apt: apt: