This section describes the steps to deploy ansible collections via UI and API.
Once you have configured your local machine to install collections from your Ansible local repository, you may also deploy Ansible collections to the same repository using the UI or the REST API.
Through the REST API, you also have the option to deploy by checksum or by deploying from an archive.
For example, to deploy an Ansible collection into a repository called ansible-local
, you could use the following:
curl -u<USERNAME>:<PASSWORD> -XPUT http://localhost:8080/artifactory/ansible-local/<PATH_TO_METADATA_ROOT> -T <TARGET_FILE_PATH>
where <PATH_TO_METADATA_ROOT>
specifies the path from the repository root to the deploy folder.