mirror of
https://github.com/Maks1mS/ansible-role-docker.git
synced 2024-12-24 00:33:04 +03:00
Allow change obsolete packages
This commit is contained in:
parent
c0ce31085c
commit
5b3eea8f97
@ -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