This topic describes how to install Ansible collections using the ansible.cfg file.
To install Ansible collections using the ansible.cfg file:
Craft the CLI command using the below syntax. Make sure to replace the placeholders in bold with your namespace and collection name , then run the command.
ansible-galaxy collection install <NAMESPACE.COLLECTION_NAME>.tar.gz
For example:
ansible-galaxy collection install geerlingguy.k8s.tar.gz
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.