Use apt module for Docker role

This commit is contained in:
2026-03-03 09:28:27 +01:00
parent edfef64be0
commit 2d11433732

View File

@@ -24,14 +24,15 @@
when: ansible_os_family == 'Debian' when: ansible_os_family == 'Debian'
- name: Install Docker from source - name: Install Docker from source
ansible.builtin.package: ansible.builtin.apt:
name: pkg:
- docker-ce - docker-ce
- docker-ce-cli - docker-ce-cli
- containerd.io - containerd.io
- docker-buildx-plugin - docker-buildx-plugin
- docker-compose-plugin - docker-compose-plugin
state: present state: present
force_apt_get: true
update_cache: yes update_cache: yes
when: ansible_os_family == 'Debian' when: ansible_os_family == 'Debian'