From 6343bc9148461e622a7dbf786051480d1847f69c Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 18 Aug 2025 20:56:23 +0200 Subject: [PATCH] Only one task for deleting the old repo is needed. Remove dependencies that are no longer needed for this role. --- tasks/setup-Debian.yml | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/tasks/setup-Debian.yml b/tasks/setup-Debian.yml index d43a3a0..13a6a5c 100644 --- a/tasks/setup-Debian.yml +++ b/tasks/setup-Debian.yml @@ -9,14 +9,6 @@ path: "/etc/apt/sources.list.d/download_docker_com_linux_{{ docker_apt_ansible_distribution | lower }}.list" state: absent -- name: Ensure the repo referencing the previous trusted.gpg.d key is not present - ansible.builtin.apt_repository: - repo: "deb [arch={{ docker_apt_arch }} signed-by=/etc/apt/trusted.gpg.d/docker.asc] {{ docker_repo_url }}/{{ docker_apt_ansible_distribution | lower }} {{ ansible_distribution_release }} {{ docker_apt_release_channel }}" - state: absent - filename: "{{ docker_apt_filename }}" - update_cache: true - when: docker_add_repo | bool - # See https://docs.docker.com/engine/install/debian/#uninstall-old-versions - name: Ensure old versions of Docker are not installed. ansible.builtin.package: @@ -33,8 +25,6 @@ name: - apt-transport-https - ca-certificates - - curl - - gpg - python3-debian state: present