Install Ansible Roles via .netrc File

JFrog Artifactory Documentation

Products
JFrog Artifactory
Content Type
User Guide
ft:sourceType
Paligo

This topic describes how to install Ansible roles using the Ansible client CLI using the .netrc file. The Ansible .netrc file stores credentials needed to login and access data stored in the Ansible LabKey server.

To install roles via CLI using the .netrc file:

Craft the CLI command using the below syntax. Make sure to replace the placeholders in bold with your namespace role name, then run the command.

ansible-galaxy role install <NAMESPACE.ROLE_NAME>.tar.gz

For example:

ansible-galaxy role 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.