Hello All,
I’m facing an issue with Ansible and Almalinux target host.
My Ansible is hosted on Ubuntu, I can deploy on Debian and Suze without any pb.
I added a new OS on my configuration, Almalinux 8
When I tried to launch my script the following error appears :
FAILED! => {“changed”: false, “msg”: “Could not import the dnf python module using /usr/bin/python3.11 (3.11.13 (main, Jul 1 2025, 10:23:30) [GCC 8.5.0 20210514 (Red Hat 8.5.0-26)]). Please install python3-dnf
package or ensure you have specified the correct ansible_python_interpreter. (attempted [‘/usr/libexec/platform-python’, ‘/usr/bin/python3’, ‘/usr/bin/python’])”, “results”: }
Maybe I didn’t check properly but I don’t found any solution, I tried to set ansible_python_interpreter: /usr/bin/python3 same way
I think there are a trick to manage installation/configuration on ansible target ?
Thank you for your support,
Eric.