To publish Ansible collections via the Ansible CLI, you need to craft the CLI command using your namespace collection name.
Note
To use this method, you must configure ansible.cfg
file in your workspace to use Server in ansible.cfg file . For more information, see Configure the Ansible Client to work with Collections.
Craft the CLI command using your namespace collection name with the path to your archive, and then run the command.
ansible-galaxy collection publish <NAMESPACE.COLLECTION_NAME>
For example:
ansible-galaxy collection publish 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.