docker: use deb822 repo

This commit is contained in:
uumas
2025-04-04 19:22:00 +03:00
parent 5b4bea1b09
commit 3e9d83457d

View File

@@ -1,14 +1,17 @@
---
- name: Ensure legacy apt repository not present
ansible.builtin.file:
path: /etc/apt/sources.list.d/docker.list
state: absent
- name: Add docker apt repository
ansible.builtin.import_role:
name: uumas.general.apt_repository
vars:
repo_name: docker
repo_url: https://download.docker.com/linux/{{ ansible_distribution | lower }}
repo_key_url: https://download.docker.com/linux/debian/gpg
repo_arch: "{{ apt_arch }}"
repo_components:
ansible.builtin.deb822_repository:
name: docker
uris: https://download.docker.com/linux/{{ ansible_distribution | lower }}
signed_by: https://download.docker.com/linux/debian/gpg
suites: "{{ ansible_distribution_release }}"
# architectures: "{{ apt_arch }}"
components:
- stable
- name: Install docker