Execution of the Ansible Role "RedHatInsights.insights-client" on a RHEL 8 host fails in Red Hat Satellite 6.5

Solution Verified - Updated -


  • When running the RedHatInsights.insights-client ansible role on a RHEL 8 host fails with the error mentioned as below.

    TASK [RedHatInsights.insights-client : Check for 'insights-client' RPM availability] 
    fatal: [rhel8.example.com]: FAILED! => {"changed": false, "msg": "The Python 2 yum module is needed for this module. If you require Python 3 support use the `dnf` Ansible module instead."}


  • Red Hat Satellite 6.5
  • Red Hat Enterprise Linux 8
  • Python 3

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In