11

How to install Ansible Automation Platform 2.4 on RHEL 9.1

 1 year ago
source link: https://developers.redhat.com/blog/2023/08/04/how-install-ansible-automation-platform-24-rhel-91
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

How to install Ansible Automation Platform 2.4 on RHEL 9.1

Senior Principal Product Manager-Technical
feature_blog_post.png

The Red Hat Ansible Automation Platform is an enterprise framework for sharing automation across your organization. Ansible Automation Platform 2.4 comes along with a multitude of upgrades over its predecessor including the likes of Event Driven Ansible, Collection Repository Management and lots more, providing even more value to its customers. This article will demonstrate how to install Ansible Automation Platform 2.4 on a machine running Red Hat Enterprise Linux 9.1.

Follow these quick and easy steps for installation.

1. Set up prerequisites

The Ansible Automation Platform requires you to have the following prerequisites:

  • Red Hat Ansible Automation Platform subscription. For a free trial, visit the Ansible Automation Platform portal.
  • Minimum 16 GB of RAM
  • Minimum of 4 vCPUs
  • 20 GB of dedicated hard disk space

2. Download the Ansible Automation Platform

Download the Ansible Automation Platform 2.4 and then extract the files. 

You will see the following files in the extracted directory:

[user@user ~ ]$ ls

You should see following output

bundle  collections  group_vars inventory  licenses  README.md  setup.sh

Before attempting to the install Ansible Automation Platform, update all the system libraries by running the following command:

sudo dnf update -y  && sudo dnf upgrade -y

3. Configuring the Ansible inventory file

Configure the credentials for Ansible and PostgreSQL in the Ansible inventory file. The inventory file also contains details about the database.

[automationcontroller]

fqdn ansible_connection=local

[database]

[all:vars]

admin_password='redhat'

pg_host=''

pg_port=''

pg_database='awx'

pg_username='awx'

pg_password='redhat'

Fill in the necessary fields according to the above details, and we will be ready for our installation.

4. Executing the setup script

Run the setup.sh file in the extracted folder. There are also various installation scenarios listed here.

sudo ./setup.sh

5. Accessing the Ansible Automation Platform console

After successfully installing the Ansible Automation Platform 2.4, access the Ansible Automation Platform console via the URL: https://localhost/. Log in with the admin username and password set in the inventory file, as shown in Figure 1.

un6dUVQFtFRosaifY-JH0Ofm49zMJkLa3K14jQEVBl3uskd4_LPQFgI4W2HB-XudfKg_g7dut-4uy76d5DmqJQVJjU9Vcru5Ym_gNcb_3pWDgoxW7C5C115b_SH-QYBWgI90Tr4cPB8x0WRB_mHE5Kk

Figure 1: Ansible Automation Platform login screen

6. Create a subscription allocation

You can create a subscription allocation in the Red Hat Customer Portal and export the manifest from the overview page. Upload the manifest to activate your subscription. You can also login using your Red Hat username and password and check which subscription allocations options you are allowed to choose.

j29A_GHRDskyKGnM8falJh0Elv2upVxNBLNWXpoOgmA_uwEJtZUp0v8ZF3gFIp-AWwWK43AfbO2NVghn56aglhGS1wtfgZxrdfQOloL9XU6r8MchoykkuHjrADSuSNYnzGXABikJAsbrL3sqWQBBHf0

Figure 2: Ansible Automation Platform Subscription

_FDWxwEQCKDskQsjC58cF8vGFPxPFI53b1_k39cgatGfE6KcQXtqChojuJBg3-Zd4pWFukZ6ykCNbu-GEQCT6Wvtvp8jHL43sfdlDA4evw9HW0JLdZETSgD-_dVrEr4ltFMBTxQ0d0sniaC5IVtM8GA

Figure 3: Ansible Automation Platform web console

What's next in your automation journey?

What's next in your automation journey?

Now that you have setup Ansible Automation Platform, explore our interactive labs at Red Hat Developer


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK