mirror of
https://github.com/geerlingguy/ansible-role-docker.git
synced 2024-12-21 19:07:06 +01:00
Merge pull request #463 from elsoa-invitech/change-obsolete-packages
Allow change obsolete packages
This commit is contained in:
commit
f35dba88d0
@ -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.
|
||||||
|
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user