Chapter 2. Setting up credentials for Event-Driven Ansible controller
Credentials are used by Event-Driven Ansible for authentication when launching rulebooks.
2.1. Setting up credentials
Create a credential to use with a private repository (GitHub or GitLab) or a private container registry.
If you are using a GitHub or GitLab repository, use the basic auth
method. Both SCM servers are officially supported. You can use any SCM provider that supports basic auth
.
Procedure
- Log in to the Event-Driven Ansible controller Dashboard.
-
From the navigation panel, select
. - Click .
Insert the following:
- Name
- Insert the name.
- Description
- This field is optional.
- Credential type
- The options available are a GitHub personal access token, a GitLab personal access token, or a container registry.
- Username
- Insert the username.
- Token
Insert a token that allows you to authenticate to your destination.
NoteIf you are using a container registry, the token field can be a token or a password, depending on the registry provider. If you are using the Ansible Automation Platform hub registry, insert the password for that in the token field.
- Click .
After saving the credential, the credentials details page is displayed. From there or the Credentials list view, you can edit or delete it.
2.2. Credentials list view
On the Credentials page, you can view the list of created credentials that you have created along with the Type of credential.
From the menu bar, you can search for credentials in the Name field.
You also have the following options in the menu bar:
- Choose which columns are shown in the list view by clicking .
- Choose between a or a , by clicking the icons.
2.3. Editing a credential
Procedure
Edit the credential by using one of these methods:
- From the Credentials list view, click the icon next to the desired credential.
- From the Credentials list view, select the name of the credential, click .
- Edit the appropriate details and click .
2.4. Deleting a credential
Procedure
Delete the credential by using one of these methods:
- From the Credentials list view, click the icon ⋮ next to the desired credential and click .
- From the Credentials list view, select the name of the credential, click the icon ⋮ next to , and click .
- In the pop-up window, select Yes, I confirm that I want to delete this credential.
- Click .
You can delete multiple credentials at a time by selecting the checkbox next to each credential and clicking the ⋮ in the menu bar and then clicking .
icon