Why I received failed to import the required Python library (ansible-tower-cli) using execute `tower_host` module in Ansible Tower?

Solution Verified - Updated -

Issue

You receive the following error message when you try to execute tower_host module

Failed to import the required Python library (ansible-tower-cli) on <tower.example.com>'s Python /usr/libexec/platform-python. Please read module documentation and install in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter

Environment

Ansible Tower

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