While installing the Ansible Automation platform 2.2, Getting error at TASK [ansible.automation_platform_installer.nginx : Open up permissions on nginx.]

Solution Verified - Updated -

Issue

  • While executing the Ansible Automation platform 2.2 setup script the tasks fails on RHEL 8 and 9 with error message below:

     TASK [ansible.automation_platform_installer.nginx : Open up 
     permissions on nginx.] 
     An exception occurred during task execution. To see the full 
     traceback, use -vvv. The error was: ModuleNotFoundError: No 
     module named 'semanage'
     failed: [192.168.0.XXX] (item=httpd_can_network_connect) => 
     {"ansible_loop_var": "item", "changed": false, "item": 
    "httpd_can_network_connect", "msg": "Failed to import the required  
     Python library (libsemanage-python) on xxxxxxxx's Python 
     /usr/libexec/platform-python. Please read the module  
     documentation and install it 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 Automation Platform 2.2

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