mirror of
https://github.com/geerlingguy/ansible-role-docker.git
synced 2026-03-07 02:17:51 +01:00
fix: lowercase distro name when removing apt source
This makes removal succeed when docker_apt_ansible_distribution is "Ubuntu".
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user