From d490bcea4ced1d91e9513a1025df92729c3aa468 Mon Sep 17 00:00:00 2001 From: dbrennand <52419383+dbrennand@users.noreply.github.com> Date: Thu, 6 Feb 2025 21:09:29 +0000 Subject: [PATCH] fix: issue with #470 fix This patch ensures that the correct filename is specified based on the distribution. Observed this behaviour on a Debian system, the old file was not removed due to it being hardcoded to ubuntu instead. --- tasks/setup-Debian.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/setup-Debian.yml b/tasks/setup-Debian.yml index a1c7d3e..2c4db41 100644 --- a/tasks/setup-Debian.yml +++ b/tasks/setup-Debian.yml @@ -6,7 +6,7 @@ - name: Ensure old apt source list is not present in /etc/apt/sources.list.d ansible.builtin.file: - path: /etc/apt/sources.list.d/download_docker_com_linux_ubuntu.list + path: "/etc/apt/sources.list.d/download_docker_com_linux_{{ docker_apt_ansible_distribution }}.list" state: absent - name: Ensure the repo referencing the previous trusted.gpg.d key is not present