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.
This commit is contained in:
dbrennand 2025-02-06 21:09:29 +00:00
parent 1800d2e793
commit d490bcea4c
No known key found for this signature in database

View File

@ -6,7 +6,7 @@
- name: Ensure old apt source list is not present in /etc/apt/sources.list.d - name: Ensure old apt source list is not present in /etc/apt/sources.list.d
ansible.builtin.file: 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 state: absent
- name: Ensure the repo referencing the previous trusted.gpg.d key is not present - name: Ensure the repo referencing the previous trusted.gpg.d key is not present