Allow change obsolete packages

This commit is contained in:
Első András 2024-06-27 15:10:27 +02:00
parent c0ce31085c
commit 5b3eea8f97
2 changed files with 8 additions and 7 deletions

View File

@ -7,6 +7,13 @@ docker_packages:
- "docker-{{ docker_edition }}-rootless-extras" - "docker-{{ docker_edition }}-rootless-extras"
- "containerd.io" - "containerd.io"
- docker-buildx-plugin - docker-buildx-plugin
docker_obsolete_packages:
- docker
- docker.io
- docker-engine
- podman-docker
- containerd
- runc
docker_packages_state: present docker_packages_state: present
# Service options. # Service options.

View File

@ -2,13 +2,7 @@
- # See https://docs.docker.com/engine/install/debian/#uninstall-old-versions - # See https://docs.docker.com/engine/install/debian/#uninstall-old-versions
name: Ensure old versions of Docker are not installed. name: Ensure old versions of Docker are not installed.
package: package:
name: name: "{{ docker_obsolete_packages }}"
- docker
- docker.io
- docker-engine
- podman-docker
- containerd
- runc
state: absent state: absent
- name: Ensure dependencies are installed. - name: Ensure dependencies are installed.