Chapter 7. Red Hat Ansible Automation Platform credential When Event-Driven Ansible controller is deployed on Ansible Automation Platform 2.5, you can create a Red Hat Ansible Automation Platform credential to connect to automation controller through the use of an automation controller URL and a username and password. After it has been created, you can attach the Red Hat Ansible Automation Platform credential to a rulebook and use it to run rulebook activations. These credentials provide a simple way to configure communication between automation controller and Event-Driven Ansible controller, enabling your rulebook activations to launch job templates. Note If you deployed Event-Driven Ansible controller with Ansible Automation Platform 2.4, you probably used controller tokens to connect automation controller and Event-Driven Ansible controller. These controller tokens have been deprecated in Ansible Automation Platform 2.5. To delete deprecated controller tokens and the rulebook activations associated with them, complete the following procedures starting with Replacing controller tokens in Ansible Automation Platform 2.5 before proceeding with Setting up a Red Hat Ansible Automation Platform credential . 7.1. Replacing controller tokens in Red Hat Ansible Automation Platform 2.5 To use Event-Driven Ansible controller in Red Hat Ansible Automation Platform 2.5, you must replace legacy controller tokens configured in your environment with Red Hat Ansible Automation Platform credentials because controller tokens have been deprecated. 7.1.1. Deleting rulebook activations with controller tokens To replace the controller tokens, you must delete the rulebook activations that were associated with them. Procedure Log in to the Ansible Automation Platform Dashboard. From the top navigation panel, select Automation Decisions Rulebook Activations . Select the rulebook activations that have controller tokens. Select the More Actions icon ... to the Rulebook Activation enabled/disabled toggle. Select Delete rulebook activation . In the window, select Yes, I confirm that I want to delete these X rulebook activations . Select Delete rulebook activations . 7.1.2. Deleting controller tokens Before you can set up Red Hat Ansible Automation Platform credentials, you must delete any existing controller tokens. Prerequisites You have deleted all rulebook activations that use controller tokens. Procedure Log in to the Ansible Automation Platform Dashboard. From the top navigation panel, select your profile. Click User details . Select the Tokens tab. Delete all of your controller tokens. After deleting the controller tokens and rulebook activations, proceed with Setting up a Red Hat Ansible Automation Platform credential . 7.2. Setting up a Red Hat Ansible Automation Platform credential You can create a Red Hat Ansible Automation Platform credential type to run your rulebook activations. Prerequisites You have created a user. You have obtained the URL and the credentials to access automation controller. Procedure Log in to the Ansible Automation Platform Dashboard. From the navigation panel, select Automation Decisions Infrastructure Credentials . Click Create credential . Insert the following: Name Insert the name. Description This field is optional. Organization Click the list to select an organization or select Default . Credential type Click the list and select Red Hat Ansible Automation Platform . Note When you select the credential type, the Type Details section is displayed with fields that are applicable for the credential type you chose. In the required Red Hat Ansible Automation Platform field, enter your automation controller URL. Note For Event-Driven Ansible controller 2.5 with automation controller 2.4, use the following example: https://<your_controller_host> For Ansible Automation Platform 2.5, use the following example: https://<your_gateway_host>/api/controller/ Enter a valid Username and Password , or Oauth Token . Click Create credential . After you create this credential, you can use it for configuring your rulebook activations.

Commands: