Install Ansible Collections - Server Explicit

JFrog Artifactory Documentation

Products
JFrog Artifactory
Content Type
User Guide
ft:sourceType
Paligo

This section describes the steps to install Ansible collections without ansibl.cfg file via Ansible client CLI.

To locate install collections code snippet based on your repository selection, follow these steps:

  1. Click Application tab, and then click Artifacts under Artifactory.

  2. Locate the repository you want to configure, and then click Set Me Up.

    SetMeUpAnsible1.png

    Note

    Alternatively, you can also choose the repository from the Repository drop-down list under Set UP An Ansible Client modal.

  3. Enter your JFrog account password to generate a token, and then click Generate Token & Create Instructions.

    AnsibleGenerateToken.png
  4. Click the Install tab, copy and paste the Server explicit snippet of Collections to your ansible client.

    InstallAnsibleCollectionsServer_explicit.png
  5. Replace the placeholder <NAMESPACE.COLLECTION_NAME> as appropriate, and then run the command.

The sample snippet structure is as follows:

Note

Make sure to replace the placeholders in bold with the namespace and collection name, server name, repository name, and token.

ansible-galaxy collection install <NAMESPACE.COLLECTION_NAME>.tar.gz -s https://<SERVER_NAME>/artifactory/api/ansible/<REPOSITORY_NAME> --token=<TOKEN>

For example:

ansible-galaxy collection install geerlingguy.k8s.tar.gz -s https://my-awesome.jfrog.io/artifactory/api/ansible/ansible-virtual --token=<TOKEN>