Authors: Seeman Mannan, Anastasia Ntogka
Red Hat® Ansible® Automation Platform is available on IBM® Z® and IBM® LinuxONE since December 7th, 2023. This marked an important step towards more centralized and efficient operations management on IBM Z / IBM® LinuxONE.
It alleviates the need to maintain multiple tools and frameworks and allows for an easy automation of system setup and maintenance.
Giving the ability to build on available Ansible Certified Content Collections (see list of collections below), any team that uses it will have an easy starting point.
The Ansible Automation Platform introduces a range of useful features, including Event-Driven Ansible, enabling events to be received from third-party tools and subsequent responsive actions based on predefined rules.
In this blog, we lead you through the step-by-step installation and configuration of the Ansible Automation Platform as a standalone system on IBM Z and IBM LinuxONE (s390x architecture) to help you get it up and running.
Architecture diagram
Ansible Automation Platform consists of the following three components,
- Ansible Automation controller
- Private Automation Hub
- Event-Driven Ansible controller
Prerequisites
- Registry Service Account
The Registry Service Account is used to consume container images from registry.redhat.io
. Follow the steps below to retrieve the token and username, which will be used while installing the Ansible Automation Platform
.
Login to the URL https://access.redhat.com/RegistryAuthentication#creating-registry-service-accounts-6
by using your RedHat admin credentials. Then click New Service Account
- Ansible Automation Platform installation and registration
Prepare your Red Hat Enterprise Linux (RHEL) machine by registering with Red Hat and installing the "Ansible Automation Platform" on all three machines.
- Register your RHEL system with your username and password
subscription-manager register --username <rhel_username> --password <password> --auto-attach
- Then execute the below command to find the pool id for
Ansible Automation Platform
subscription-manager list --available --all | grep "Ansible Automation Platform" -B 3 -A 6 | grep Pool
- Attach the "Ansible Automation Platform" pool to the subscription manager
subscription-manager attach --pool= <Ansible Pool-Id from the previous step>
- Proceed with the installation
dnf install --enablerepo=ansible-automation-platform-2.4-for-rhel-9-s390x-rpms ansible-automation-platform-installer
- System requirements
Automation Controller installation on an LPAR
Make sure the Prerequisites
section is completed before proceeding with the installation.
- After installing
Ansible Automation Platform
on the LPAR, you should be able to find the installed files under,
-
$ cd /opt/ansible-automation-platform/installer
$ ls
Output:
-
Replace the existing inventory file with the below content,
-
- automationcontroller : Provide the fully qualified domain name for the controller login URL
-
admin_password : Provide an automation controller login password of your choice
-
pg_password : Provide a database password of your choice
-
registry_username : Update the username from the Registry Service Account
-
registry_password : Update the token from theRegistry Service Account
Sample content:
[automationcontroller]
controller.example.com
[all:vars]
admin_password='controller-password'
pg_host=''
pg_port='5432'
pg_database='awx'
pg_username='awx'
pg_password='pg-password'
pg_sslmode='prefer' # set to 'verify-full' for client-side enforced SSL
registry_url='registry.redhat.io'
registry_username='123456789|sa-ansible'
registry_password='xxxxxxxxxxxx'
# SSL-related variables
# If set, this will install a custom CA certificate to the system trust store.
# custom_ca_cert=/path/to/ca.crt
# Certificate and key to install in nginx for the web UI and API
# web_server_ssl_cert=/path/to/tower.cert
# web_server_ssl_key=/path/to/tower.key
# Server-side SSL settings for PostgreSQL (when we are installing it).
# postgres_use_ssl=False
# postgres_ssl_cert=/path/to/pgsql.crt
# postgres_ssl_key=/path/to/pgsql.key
Note: More information about the inventory file can be found in the link.
-
After completing the inventory file, execute the setup.sh
script. The installation begins. Wait until it is completed.
- After the installation is completed, open using your browser the
automationcontroller
URL mentioned in your inventory file in order to login.
https://<automationcontroller>/login
- Use
admin
as username and as password use the one you provided under admin_password
in the inventory file.
- After successfully logging in, you can see the dashboard.
Automation Hub installation in an LPAR
Ansible Automation Hub is the central repository for discovering, downloading, and managing the Ansible Collections from Red Hat and its partners.
Again, it is important to make sure that the prerequisites section is completed, before proceeding further with the installation.
- After installing
Ansible Platform Installation and Registration
in the LPAR. You can find the installed files under
$ cd /opt/ansible-automation-platform/installer
$ ls
Output: