Skip to main content
AI
  • Get started with AI

    • Red Hat AI

      Accelerate the development and deployment of enterprise AI solutions.

    • AI learning hub

      Explore learning materials and tools, organized by task.

    • AI interactive demos

      Click through scenarios with Red Hat AI, including training LLMs and more.

    • AI/ML learning paths

      Expand your Red Hat OpenShift AI knowledge using these learning resources.

    • AI quickstarts

      Focused AI use cases designed for fast deployment on Red Hat AI platforms.

    • No-cost AI training

      Foundational Red Hat AI training.

  • Featured resources

    • Red Hat OpenShift AI
    • Open source AI for developers
    • AI product application development
    • Open source-powered AI/ML for hybrid cloud
    • AI and Node.js cheat sheet

Red Hat AI Factory with NVIDIA

Red Hat AI Factory with NVIDIA is a co-engineered, enterprise-grade AI solution for building, deploying, and managing AI at scale across hybrid cloud environments.

Learn
  • Self-guided

    • Documentation

      Find answers, get step-by-step guidance, and learn how to use Red Hat products.

    • Learning paths

      Explore curated walkthroughs for common development tasks.

    • Guided learning

      Receive custom learning paths powered by our AI assistant.

    • See all learning
  • Hands-on

    • Developer Sandbox

      Spin up Red Hat's products and technologies without setup or configuration.

    • Interactive labs

      Learn by doing in these hands-on, browser-based experiences.

    • Interactive demos

      Click through product features in these guided tours.

  • Browse by topic

    • AI/ML
    • Automation
    • Java
    • Kubernetes
    • Linux
    • See all topics
  • Training & certifications

    • Courses and exams
    • Certifications
    • Skills assessments
    • Red Hat Academy
    • Learning subscription
    • Explore training
Build
  • Get started

    • Red Hat build of Podman Desktop

      A downloadable, local development hub to experiment with our products and builds.

    • Developer Sandbox

      Spin up Red Hat's products and technologies without setup or configuration.

  • Download products

    • Red Hat Enterprise Linux
    • Red Hat AI
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products
  • Featured

    • Red Hat build of OpenJDK
    • Red Hat JBoss Enterprise Application Platform
    • Red Hat OpenShift Dev Spaces
    • Red Hat Developer Toolset
  • References

    • E-books
    • Documentation
    • Cheat sheets
    • Architecture center
Community
  • Get involved

    • Events
    • Live AI events
    • Red Hat Summit
    • Red Hat Accelerators
    • Community discussions
  • Follow along

    • Articles & blogs
    • Developer newsletter
    • Videos
    • Github
  • Get help

    • Customer service
    • Customer support
    • Regional contacts
    • Find a partner

Join the Red Hat Developer program

Download Red Hat products and project builds, access support documentation, learning content, and more.

ConsoleDocsSupport Search
New For you

Recommended

We'll recommend resources you may like as you browse. Try these suggestions for now.

  • Product downloads
  • Cheat sheets
  • Red Hat Developer learning portal
  • Developer blog
  • E-books
  • Developer Sandbox
Log in

Get more with a Red Hat Developer account

  • Product downloads
  • Console access
  • Event registration
  • Training & trials
Explore more account benefitsLog in or register

A subscription may be required for some services.

Contact us

How to install Red Hat Ansible Automation Platform on RHEL 9

January 1, 2023
Nagesh Rathod
Related topics:
AutomationLinux
Related products:
Red Hat Ansible Automation PlatformRed Hat Enterprise Linux

    Red Hat Ansible Automation Platform is a comprehensive solution that helps you automate collaboratively. In this article, you will learn how to install Ansible Automation Platform 2.2 on Red Hat Enterprise Linux 9.

    Get the Ansible Automation Platform software

    Download Ansible Automation Platform 2.2 for RHEL using this link and extract it. Upon extraction, you will see the following files:

    [user@user ~ ]$ ls
    bundle  collections  fake-inv  group_vars  images  inventory  licenses  README.md  setup.log  setup.sh

    Configure the Ansible inventory file

    The Ansible inventory file contains details about the database, credentials for PostgreSQL and Ansible, etc. For our example, we will create a single node inventory file for the Ansible Automation Platform.

    
    [automationcontroller]
    fqdn ansible_connection=local
    
    [database]
    
    [all:vars]
    admin_password='redhat'
    
    pg_host=''
    pg_port=''
    
    pg_database='awx'
    pg_username='awx'
    pg_password='redhat'

    This is a sample file; please update the parameters to match your environment.

    Ansible Automation Platform installation

    To install Ansible Automation Platform on RHEL, execute the file setup.sh in the terminal in the same directory where you have extracted the setup files.

    sudo ./setup.sh
    Using /etc/ansible/ansible.cfg as config file
    [WARNING]: running playbook inside collection
    ansible.automation_platform_installer
    [DEPRECATION WARNING]: "include" is deprecated, use include_tasks/import_tasks 
    instead. This feature will be removed in version 2.16. Deprecation warnings can
     be disabled by setting deprecation_warnings=False in ansible.cfg.
    
    PLAY [Warn if no core component is enabled] ************************************
    
    TASK [Warn if no core component is enabled] ************************************
    skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}
    [WARNING]: Could not match supplied host pattern, ignoring: tower
    [WARNING]: Could not match supplied host pattern, ignoring: automationhub
    [WARNING]: Could not match supplied host pattern, ignoring: automationcatalog
    [WARNING]: Could not match supplied host pattern, ignoring: execution_nodes
    [WARNING]: Could not match supplied host pattern, ignoring: sso
    
    PLAY [Group all valid hosts for AAP installation] ******************************
    
    TASK [Gathering Facts] *********************************************************
    ok: [pqdn]
    
    TASK [group hosts used in AAP installer] ***************************************
    ok: [pqdn] => {"add_group": "aap_valid_hosts", "changed": false, "parent_groups": ["all"]}
    
    PLAY [aap_valid_hosts] *********************************************************
    
    TASK [ansible.automation_platform_installer.check_config_static : Ensure SSO node is run on a RHEL 8 node] ***
    skipping: [pqdn] => {"changed": false, "skip_reason": "Conditional result was False"}
    
    TASK [ansible.automation_platform_installer.check_config_static : Ensure expected variables are defined] ***
    skipping: [pqdn] => (item=tower_package_name)  => {"ansible_loop_var": "item", "changed": false, "item": "tower_package_name", "skip_reason": "Conditional result was False"}
    skipping: [pqdn] => (item=tower_package_version)  => {"ansible_loop_var": "item", "changed": false, "item": "tower_package_version", "skip_reason": "Conditional result was False"}
    
    TASK [ansible.automation_platform_installer.check_config_static : Ensure cluster hosts are not localhost] ***
    skipping: [pqdn] => {"changed": false, "skip_reason": "Conditional result was False"}
    
    TASK [ansible.automation_platform_installer.check_config_static : Check that group names do not conflict with instance names] ***
    skipping: [pqdn] => {"changed": false, "skip_reason": "Conditional result was False"}
    
    TASK [ansible.automation_platform_installer.check_config_static : Detect pre-2.x inventory and offer a migration] ***
    ok: [pqdn -> localhost] => {"changed": false, "msg": "Old style inventory not detected, continuing with install"}
    
    TASK [ansible.automation_platform_installer.check_config_static : Detect unsupported HA inventory file] ***
    skipping: [pqdn] => {"changed": false, "skip_reason": "Conditional result was False"}
    
    TASK [ansible.automation_platform_installer.check_config_static : Check that no instance groups are named automationcontroller] ***
    skipping: [pqdn] => (item=all)  => {"ansible_loop_var": "item", "changed": false, "item": "all", "skip_reason": "Conditional result was False"}
    skipping: [pqdn] => (item=ungrouped)  => {"ansible_loop_var": "item", "changed": false, "item": "ungrouped", "skip_reason": "Conditional result was False"}
    skipping: [pqdn] => (item=automationcontroller)  => {"ansible_loop_var": "item", "changed": false, "item": "automationcontroller", "skip_reason": "Conditional result was False"}
    skipping: [pqdn] => (item=database)  => {"ansible_loop_var": "item", "changed": false, "item": "database", "skip_reason": "Conditional result was False"}
    skipping: [pqdn] => (item=aap_valid_hosts)  => {"ansible_loop_var": "item", "changed": false, "item": "aap_valid_hosts", "skip_reason": "Conditional result was False"}
    
    TASK [ansible.automation_platform_installer.check_config_static : Ensure only one database host exists] ***
    skipping: [pqdn] => {"changed": false, "skip_reason": "Conditional result was False"}
    
    
    

    Accessing the Ansible Automation Platform Console

    After successful installation, you can access the console of the Ansible Automation platform by visiting the console URL http://localhost (Figure 1). The username is admin and the password is what you have defined in the inventory file in the [all:vars] field.

    Screenshot of the Ansible Automation Platform login page.
    Figure 1: Ansible Automation Platform login page.

    Subscriptions

    You must have valid subscriptions attached before using the Red Hat Ansible Automation Platform (Figure 2). Attaching an Ansible Automation Platform subscription enables automation hub repositories.

    Screenshot of the Ansible subscription page
    Figure 2: Ansible subscription page.

    To log in, use the same credentials you used to download Ansible Automation Platform 2.2. You can import a subscription. You can also obtain the pool_id for your Red Hat Ansible Automation Platform subscription with this command:

    $ subscription-manager list --available --all | grep "Ansible Automation Platform" -B 3 -A 6

    That command will return the following, which verifies Ansible Automation Platform entitlements:

    Subscription Name: Red Hat Ansible Automation, Premium (5000 Managed Nodes)
      Provides: Red Hat Ansible Engine
      Red Hat Ansible Automation Platform
      SKU: MCT3695
      Contract: ````
      Pool ID: ``````````
      Provides Management: No
      Available: 4999

    To attach the subscription, use the attach option with the subscription-manager command.

    # subscription-manager attach --pool=<pool_id>

    Once you've subscribed, the Red Hat Ansible Automation Platform will be attached to all nodes and able to access Automation Hub Repositories. To verify that the subscription was successfully attached, run the list option:

    # subscription-manager list --consumed

    Figure 3 gives you a glimpse of the Ansible Automation Platform web console.

    Screenshot of the Ansible Automation Platform web console.
    Figure 3: Ansible Automation Platform web console.

    Continue your automation journey with Ansible Automation Platform

    You can get started with the Ansible Automation Platform by exploring interactive labs at Red Had Developer. Ansible Automation Platform is also available as a managed offering on Microsoft Azure and as a self-managed offering on Amazon Web Services.

    Last updated: September 27, 2024

    Related Posts

    • Set up a continuous integration pipeline with Ansible Automation Platform & GitLab

    • Introducing Ansible Molecule with Ansible Automation Platform

    • Create an efficient Ansible development environment in VS Code

    • How to deploy applications using Ansible Automation Platform

    • How to use automation controller to install MS SQL

    • How to create execution environments using ansible-builder

    Recent Posts

    • A day in the life of an NVIDIA H100 on Red Hat OpenShift 5

    • Migrate BuildConfigs to builds for Red Hat OpenShift with one plug-in install

    • Run Red Hat Enterprise Linux CoreOS on NVIDIA BlueField DPUs

    • Agent harness engineering: Separating model capabilities from enforcement

    • What's new for developers in Red Hat Enterprise Linux 10.3 and 9.9

    What’s up next?

    Get a preview of the Red Hat Certified Engineer (RHCE) Ansible Automation Study Guide (O’Reilly), which covers key Ansible concepts for your system administration needs.

    Download the e-book
    Red Hat Developers logo

    Platforms

    • Red Hat AI
    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    Build

    • Developer Sandbox
    • Developer tools
    • Interactive tutorials
    • API catalog

    Quicklinks

    • Learning resources
    • E-books
    • Cheat sheets
    • Blog
    • Events
    • Newsletter

    Communicate

    • About us
    • Contact sales
    • Find a partner
    • Report a website issue
    • Site status dashboard
    • Report a security problem

    Red Hat Developer

    Build here. Go anywhere.

    We serve the builders. The problem solvers who create careers with code.

    Join us if you’re a developer, software engineer, web designer, front-end designer, UX designer, computer scientist, architect, tester, product manager, project manager or team lead.

    Sign me up

    Red Hat legal and privacy links

    • About Red Hat
    • Jobs
    • Events
    • Locations
    • Contact Red Hat
    • Red Hat Blog
    • Inclusion at Red Hat
    • Cool Stuff Store
    • Red Hat Summit
    © 2026 Red Hat

    Red Hat legal and privacy links

    • Privacy statement
    • Terms of use
    • All policies and guidelines
    • Digital accessibility
    Ask AI