Prerequisite: Configure your 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.
To publish Ansible collections via the Ansible CLI:
Run the following command:
ansible-galaxy collection publish <NAMESPACE.COLLECTION_NAME>
Where:
<NAMESPACE.COLLECTION_NAME>: The path to the collection archive
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.