update key format to deb822

This commit is contained in:
tolerryan
2025-10-06 01:50:38 -05:00
parent 1db805f3f8
commit 20bed87178

View File

@@ -11,7 +11,6 @@
when:
- ansible_distribution == "Debian"
- ansible_distribution_version is version('13', '<')
tags: packages
- name: Install package on Debian 13.x
apt:
@@ -25,17 +24,20 @@
when:
- ansible_distribution == "Debian"
- ansible_distribution_version is version('13', '>=')
tags: packages
- name: Add Docker GPG key
apt_key:
url: https://download.docker.com/linux/debian/gpg
ansible.builtin.deb822_repository:
name: docker
types: [deb]
uris: "https://download.docker.com/linux/debian"
components: [main]
suites: ["trixie"]
signed_by: https://download.docker.com/linux/debian/gpg
state: present
enabled: true
when:
- ansible_distribution == "Debian"
- ansible_distribution_version is version('13', '>=')
- name: Add Docker repository
apt_repository:
repo: deb [arch=amd64] https://download.docker.com/linux/debian bookworm stable
state: present
- name: Install Docker Engine
apt: