Hi all, I am routinely getting this error running a playbook. I've verified that python3-dnf IS installed, so I'm not sure why it's complaining here.
failed: [dido-test] (item=['puppet-agent', 'puppet5-release']) => {"ansible_loop_var": "item", "changed": false, "cmd": "dnf install -y python3-dnf", "item": ["puppet-agent", "puppet5-release"], "msg": "Could not import the dnf python module using /usr/bin/python (3.8.3 (default, Aug 18 2020, 08:56:04) [GCC 8.3.1 20191121 (Red Hat 8.3.1-5)]). Please install `python3-dnf` package or ensure you have specified the correct ansible_python_interpreter.", "rc": 0, "results": [], "stderr": "", "stderr_lines": [], "stdout": "Updating Subscription Management repositories.\nRed Hat Enterprise Linux 8 for x86_64 - AppStre 57 kB/s | 2.8 kB 00:00 \nRed Hat Enterprise Linux 8 for x86_64 - BaseOS 50 kB/s | 2.4 kB 00:00 \nRed Hat Satellite Tools 6.6 for RHEL 8 x86_64 ( 42 kB/s | 2.1 kB 00:00 \nPackage python3-dnf-4.2.23-4.el8.noarch is already installed.\nDependencies resolved.\nNothing to do.\nComplete!\n", "stdout_lines": ["Updating Subscription Management repositories.", "Red Hat Enterprise Linux 8 for x86_64 - AppStre 57 kB/s | 2.8 kB 00:00 ", "Red Hat Enterprise Linux 8 for x86_64 - BaseOS 50 kB/s | 2.4 kB 00:00 ", "Red Hat Satellite Tools 6.6 for RHEL 8 x86_64 ( 42 kB/s | 2.1 kB 00:00 ", "Package python3-dnf-4.2.23-4.el8.noarch is already installed.", "Dependencies resolved.", "Nothing to do.", "Complete!"]} -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAHKi8ChFRAM0ZaZrUHMCbQROEDPCF8E8TLrj0pDjUvHGg_z8jQ%40mail.gmail.com.