# Getting a errors with ansible checks...

**URL:** <https://forum.ansible.com/t/getting-a-errors-with-ansible-checks/34753>\
**Category:** Ansible Project\
**Tags:** rhel\
**Created:** [March 9, 2021, 5:32pm UTC](https://forum.ansible.com/t/getting-a-errors-with-ansible-checks/34753 "2021-03-09T17:32:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris\_Bidwell](https://avatars.discourse-cdn.com/v4/letter/c/da6949/32.png) [@Chris\_Bidwell](https://forum.ansible.com/u/Chris_Bidwell)\
**Post date:** [March 9, 2021, 5:32pm UTC](https://forum.ansible.com/t/getting-a-errors-with-ansible-checks/34753/1 "2021-03-09T17:32:46Z")

</div>

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!”]}
