Configure the Ansible Client to work with Collections

JFrog Artifactory Documentation

Products
JFrog Artifactory
Content Type
User Guide

Once your Ansible client is configured to work with Artifactory, your Artifactory instance will proxy all requests to Ansible.

To configure the Ansible client to work with Collections:

Update the ansible.cfg file with the following snippet:

[galaxy]
server_list = <REPOSITORY_NAME>

[galaxy_server.<REPOSITORY_NAME>]
url=https://[JFrogPlatformURL]/artifactory/api/ansible/<REPOSITORY_NAME>
token=<TOKEN>

Where:

  • <REPOSITORY_NAME>: The name of the repository.

    Tip

    For the server_list parameter, you can list multiple repository names separated by a comma. For example, server_list = ansible-virtual, ansible-local.

  • <url>[JFrogPlatformURL]: The URL of your JPD

  • <TOKEN>: Your JPD access token

For example:

[galaxy]
server_list = ansible-virtual

[galaxy_server.ansible-virtual]
url=https://company.jfrog.io/artifactory/api/ansible/ansible-virtual
token=w8RvZ3tGkP7sVbNfHjMqYxAcX2pLdE9jU1oI5uC6yFzTmK4rB0eSgWlQhOaD

Alternatively, you can choose to use the Artifactory <URL> and <Token> explicitly in your publish and install commands.

Note

You can also use JFrog Set me up to copy the snippet populated with your token and environment. For more information, see Use Artifactory Set Me Up for Configuring Package Manager Clients.

Next Steps: