Ansible Pilot

Integrate Private Automation Hub with Automation Controller

How to Connect Private Automation Hub to Automation Controller in Ansible Automation Platform

August 4, 2023
Access the Complete Video Course and Learn Quick Ansible by 200+ Practical Lessons

Introduction

The integration between Red Hat Ansible Automation Platform’s Private Automation Hub and Automation Controller brings a seamless and efficient automation experience to your organization. This connection allows you to access Collections and Execution Environments from the Private Automation Hub, enabling effective management and deployment of automation resources. In this guide, we will walk you through the process of connecting your Private Automation Hub to your Automation Controller.

Prerequisites

Before you begin, ensure you have the following:

  1. Private Automation Hub: Make sure you have a Private Automation Hub instance up and running.

  2. Automation Controller: Ensure you have Red Hat Ansible Automation Platform installed with a working Automation Controller.

  3. Automation Hub API Token: Obtain an API token from your Private Automation Hub. This token will be used for authentication.

The Best Resources For Ansible

Certifications

Video Course

Printed Book

eBooks

Step-by-Step Guide

Follow these steps to connect your Private Automation Hub to your Automation Controller:

  1. Collect API Token from Private Automation Hub

Log in to your Private Automation Hub. — Navigate to API token management by going to “Collections” > “API token management.” — Load your API token and click “Copy to clipboard” to save it. — Paste the API token into a secure file and store it in a safe location.

Private Automation Hub API Token

  1. Create Credentials in Automation Controller

To authenticate your Automation Controller with your Private Automation Hub, you need to create specific credentials:

Private Automation Hub — Publish Credential:

— Credential Type: Ansible Galaxy/Automation Hub API Token — Galaxy Server URL: https://ah.example.com/api/galaxy/content/published/ — API Token: Paste the API token obtained from the Private Automation Hub.

Private Automation Hub — RH-certified Credential: — Credential Type: Ansible Galaxy/Automation Hub API Token — Galaxy Server URL: https://ah.example.com/api/galaxy/content/rh-certified/ — API Token: Paste the API token obtained from the Private Automation Hub.

Private Automation Hub — Container Registry Credential: — Credential Type: Container Registry — Galaxy Server URL: https://ah.example.com/ — Username: Your Private Automation Hub login username — Password or Token: Your Private Automation Hub login password or token

Automation Controller New Credential

  1. (Optional) Disable SSL verification for Private Automation Hub in Automation Controller > Settings > Jobs

Automation Controller SSL validation

  1. Attach Credentials to Respective Organization

Attach the created credentials to their respective organization within the Automation Controller.

Automation Controller Select Credential

Automation Controller Organization

  1. Authenticate and Access Resources

Your Automation Controller is now successfully connected to your Private Automation Hub. It can authenticate using the provided credentials and access Collections and Execution Environments from the Private Automation Hub.

Recap

Integrating your Private Automation Hub with your Automation Controller enhances your organization’s automation capabilities by enabling seamless access to resources and efficient management of automation assets. Following the steps outlined in this guide, you can establish a secure and effective connection between the Private Automation Hub and the Automation Controller, empowering your teams to achieve more with automation.

Disclaimer: This article is based on information available as of 2023. Please refer to the latest documentation for any updates or changes.

Subscribe to the YouTube channel, Medium, and Website, X (formerly Twitter) to not miss the next episode of the Ansible Pilot.

Academy

Learn the Ansible automation technology with some real-life examples in my

My book Ansible By Examples: 200+ Automation Examples For Linux and Windows System Administrator and DevOps

BUY the Complete PDF BOOK to easily Copy and Paste the 250+ Ansible code

Want to keep this project going? Please donate

Access the Complete Video Course and Learn Quick Ansible by 200+ Practical Lessons
Follow me

Subscribe not to miss any new releases