fix: lowercase distro name when removing apt source

This makes removal succeed when docker_apt_ansible_distribution is
"Ubuntu".
This commit is contained in:
boite 2025-03-18 23:57:55 +00:00
parent acade8d01f
commit 047f7a163c

View File

@ -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