update key format to deb822
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user