From 5b3eea8f972bcd2038b028dbb06e46970787acd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Els=C5=91=20Andr=C3=A1s?= Date: Thu, 27 Jun 2024 15:10:27 +0200 Subject: [PATCH] Allow change obsolete packages --- defaults/main.yml | 7 +++++++ tasks/setup-Debian.yml | 8 +------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index f0ed366..a1effd2 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -7,6 +7,13 @@ docker_packages: - "docker-{{ docker_edition }}-rootless-extras" - "containerd.io" - docker-buildx-plugin +docker_obsolete_packages: + - docker + - docker.io + - docker-engine + - podman-docker + - containerd + - runc docker_packages_state: present # Service options. diff --git a/tasks/setup-Debian.yml b/tasks/setup-Debian.yml index 06efe0f..a864b3f 100644 --- a/tasks/setup-Debian.yml +++ b/tasks/setup-Debian.yml @@ -2,13 +2,7 @@ - # See https://docs.docker.com/engine/install/debian/#uninstall-old-versions name: Ensure old versions of Docker are not installed. package: - name: - - docker - - docker.io - - docker-engine - - podman-docker - - containerd - - runc + name: "{{ docker_obsolete_packages }}" state: absent - name: Ensure dependencies are installed.