From 047f7a163ca630e07e19e2d781505e27ef444eca Mon Sep 17 00:00:00 2001 From: boite Date: Tue, 18 Mar 2025 23:57:55 +0000 Subject: [PATCH] fix: lowercase distro name when removing apt source This makes removal succeed when docker_apt_ansible_distribution is "Ubuntu". --- 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 2c4db41..253876b 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_{{ docker_apt_ansible_distribution }}.list" + 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