On {Project}, you can synchronize your Ansible Collections from any Ansible Galaxy and other {Project} instances. Ansible Collections will appear on {Project} as a new repository type in the {ProjectWebUI} menu under Content after the sync.
-
In the {ProjectWebUI}, navigate to Content > Products.
-
Select the required product name.
-
In the Products window, select the name of a product that you want to create a repository for.
-
Click the Repositories tab, and then click New Repository.
-
In the Name field, enter a name for the repository.
The Label field is populated automatically based on the name.
-
From the Type list, select ansible collection.
-
In the Upstream URL field, enter the URL for the upstream collections repository.
The URL can be any Ansible Galaxy endpoint. For example,
https://galaxy.ansible.com
. -
Optional: In the Requirements.yml field, you can specify the list of collections you want to sync from the endpoint, as well as their versions.
If you do not specify the list of collections, everything from the endpoint will be synced.
--- collections: - name: my_namespace.my_collection version: 1.2.3
For more information, see Install multiple collections with a requirements file in Galaxy User Guide.
-
Authenticate.
-
To sync {Project} from Private Automation Hub, enter your token in the Auth Token field.
-
To sync {Project} from
console.redhat.com
, enter your token in the Auth Token field and enter your SSO URL in the the Auth URL field. -
To sync {Project} from {Project}, leave both authentication fields blank.
-
-
Click Save.
-
Navigate to the Ansible Collections repository.
-
From the Select Action menu, select Sync Now.