Install and Configure Ansible plug-ins for Red Hat Developer Hub on Developer Sandbox for Red Hat Openshift

In this learning path, you will successfully install and configure Ansible plugins on Red Hat Developer Hub (RHDH), enhancing the automation capabilities within your development environment. This comprehensive guide provides you with the knowledge and steps needed to seamlessly integrate Ansible Automation with RHDH, ensuring a unified and efficient workflow for automation developers.

Ansible plug-ins for Red Hat Developer Hub documentation

In this lesson, you will:

  • Create a playbook project using the Ansible plug-ins template.
  • Open the playbook project in OpenShift DevSpaces.

Step-by-Step Guide

Step 1: Create an Ansible Playbook project

1. Navigate to the Catalog

  • In the Red Hat Developer Hub (RHDH) UI, click the Ansible icon in the left-hand navigation menu.
  • Click the “Create” tab.

2. Select the Ansible Playbook template:

  • Find the “Create Ansible Playbook Project” template.
  • Click on “Choose” to open its details page.

3. Create the project:

  1. Fill in the required fields:
    • Under Source code repository organization name or username, add your GitHub username.
    • Under Playbook repository name add a repository name for your playbook project.
    • Add a Playbook description.
    • Under Playbook project's collection namespace add a collection namespace. The new playbook Git project creates an example collection folder for you. Enter a value for the collection namespace.
    • Under Playbook project's collection name add a collection name. The name of the example collection.
    • Under Catalog Owner name add your GitHub username.
  2. Click Review and Create to generate the playbook project using the template.

Step 2: Open the project in OpenShift Dev Spaces.

  1. Navigate to the Catalog:
    • In the Red Hat Developer Hub (RHDH) UI, click the Ansible icon in the left-hand navigation menu.
    • Click the “My Items” tab.
  2. Select the Ansible Playbook catalog item:
    • Find the newly created catalog item that you created in the "Create a Playbook Project" procedure and click on it.
  3. Open in OpenShift Dev Spaces
    • Under the Links section of your newly created catalog item, you will find a link to “Open Ansible project in OpenShift Dev Spaces”. Click the link.

      Link of OpenShift Dev Spaces
      Figure 3: Linked to OpenShift Dev Spaces.
    • This link opens the project in OpenShift Dev Spaces attached to your Sandbox account.
  4. Start developing automation content:
    • Use the integrated development environment (IDE) provided by DevSpaces to start working on your Ansible Playbook project.
    • All necessary tools and resources are available within the centralized interface, reducing context switching and enhancing productivity.

For a more detailed overview on how to use Ansible plug-ins for RHDH, please refer to the official product documentation.

Previous resource
Setup and configure Ansible plug-ins for RHDH on the Developer Sandbox.