Approve content for custom repositories in automation hub
In automation hub you can approve collections into any repository marked with the pipeline=approved label.
By default, automation hub includes one repository for approved content, but you have the option to add more from the repository creation screen. You cannot directly publish into a repository marked with the pipeline=approved label. A collection must first go through a staging repository and be approved before being published into a pipeline=approved repository.
- Auto approval
-
When auto approve is enabled, any collection you upload to a staging repository is automatically promoted to all of the repositories marked as
pipeline=approved. - Approval required
-
When auto approve is disabled, the administrator can view the approval dashboard and see collections that have been uploaded into any of the staging repositories. Sorting by Approved displays a list of approved repositories. From this list, the administrator can select one or more repositories to which the content should be promoted.
If only one approved repository exists, the collection is automatically promoted into it and the administrator is not prompted to select a repository.
- Rejection
- Rejected collections are automatically placed into the rejected repository, which is pre-installed.
Manage access to custom content with role based access control Copy linkLink copied!
Use Role Based Access Control (RBAC) to restrict user access to custom repositories by defining access permissions based on user roles.
By default, users can view all public repositories in their automation hub, but they cannot modify a repository unless their role allows them access to do so. The same logic applies to other operations on the repository. For example, you can remove a user’s ability to download content from a custom repository by changing their role permissions.
Create a custom repository Copy linkLink copied!
When you create a repository in Ansible Automation Platform, you can configure the repository to be private or hide it from search results.
Procedure Copy linkLink copied!
What to do next Copy linkLink copied!
- After the repository is created, the details page is displayed.
From here, you can provide access to your repository, review or add collections, and work with the saved versions of your custom repository.
Configure access to a custom automation hub repository Copy linkLink copied!
Use role-based access control to assign users to a repository so they can interact with it.
About this task Copy linkLink copied!
By default, private repositories and the automation content collections are hidden from all users in the system. Public repositories can be viewed by all users, but cannot be modified. You must configure a custom repository to grant users access to it.
Procedure Copy linkLink copied!
- Log in to private automation hub.
- From the navigation panel, select .
- Click into your repository in the list and select the Team Access tab.
- Click .
- Select the team to which you want to grant a role, then click .
- Select the roles you want to apply to the selected team, and then click .
- Review your selections and click .
- Click to complete the process.
Add automation content to an automation hub repository Copy linkLink copied!
After you create your repository, you can add automation content to it.
Procedure Copy linkLink copied!
- From the navigation panel, select .
- Click into your repository in the list.
- Select the Collection versions tab.
- Click and select the collections that you want to add to your repository.
- Click .
Manage automation hub repository versions Copy linkLink copied!
When automation content is added or removed from a repository, a new version is created. If a change to your repository causes a problem, you can revert to a previous version.
About this task Copy linkLink copied!
Reverting is a safe operation and does not delete content from the system, but rather changes the content associated with the repository. The number of versions saved is defined in the Retained number of versions setting when a repository is created.
Procedure Copy linkLink copied!
- Log in to Ansible Automation Platform.
- From the navigation panel, select .
- Click into your repository in the list and then select the Versions tab.
- Locate the version you want to revert to and click the icon ⋮, and select Revert to this version.
- Check the box confirming your selection, and then click .