Open tiny-pangolin opened 1 month ago
I also noticed that the docker_obsolete_packages
variable is not used for RedHat. Would it be possible to change the hard coded list to use this variable? Using the variable instead of the hard coded variable would allow me to work around the issue and make the behavior consistent between Debian and RedHat family distros.
This behavior has been adressed in https://github.com/ansible/ansible/pull/80550 but i think it is only included in 2.18
As for your second suggestion, yes, you can replace the hardcoded list, see here https://github.com/geerlingguy/ansible-role-docker/pull/474
I receive the following output when I import this role on Fedora 40 with only dnf5. The role behaves correctly on Fedora 40 with dnf4 installed
Running
sudo dnf5 remove docker docker-common docker-engine
executes correctly.I believe this is the task where the failure occurs is
Ensure old versions of Docker are not installed
in this filetasks/setup-RedHat.yml