How to resolve the error "ModuleNotFoundError: No module named psutil" in Satellite 6 Ansible jobs

Solution Verified - Updated -

Issue

  • When the job template in Satellite 6 is being executed using ansible custom environment it gives an error ModuleNotFoundError: No module named psutil.

  • Cloud connector job is failing with the error No module named 'psutil':

    [DEPRECATION WARNING]: "include" is deprecated, use include_tasks/import_tasks instead. This feature will be 
    removed in version 2.1 be disabled by setting deprecation_warnings=False in ansible.cfg.
    ERROR! Unexpected Exception, this is probably a bug: No module named 'psutil'
    

Environment

  • Red Hat Satellite 6
  • Red Hat Enterprise Linux 8

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

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content