Enable SELinux on Ansible Automation Platform 2

Solution Verified - Updated -

Environment

  • Ansible Automation Platform 2.X

Issue

  • SELinux is disabled or on permissive mode on already installed Ansible Automation Platform instance.

Resolution

  1. Edit the /etc/selinux/config file and change SELINUX=permissive or SELINUX=disabled to SELINUX=enforcing.

  2. Verify SELinux is enabled.

    # getenforce
    Enforcing
    
  3. Navigate to the installer directory ansible-automation-platform-setup-2.X or ansible-automation-platform-setup-
    bundle-2.X if you are using the bundle installer and run the installer.

    # ./setup.sh
    
  4. Reboot the instance.

    # reboot
    

Root Cause

  • When installing Ansible Automation Platform , SELinux was already disabled.

Diagnostic Steps

  • Check the status of SELinux:

    # getenforce
    Permissive
    

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments