Make a project from:
https://github.com/AlanCoding/utility-playbooks/
Create an inventory with localhost.
Create a credential type with the credential type JSON here. Create a credential of that type with the relevant parameters.
Make a JT with that credential, inventory, project, and use playbook:
galaxy_upload.yml
Then 🚀
If you specify a version that has already been uploaded, the the final command:
should fail, but allow the failure.
ERROR! Error when publishing collection to galaxy (https://galaxy.ansible.com) (HTTP Code: 409, Message: Collection "alancoding-awx-0.0.3" already exists. Code: conflict.collection_exists)
If you specify a version which has not been uploaded, it should upload like this in stdout:
Publishing collection artifact '/tmp/awx_56__6ocy12h/project/awx_clone/awx_collection/alancoding-awx-0.0.5.tar.gz' to galaxy https://galaxy.ansible.com
Collection has been published to the Galaxy server galaxy https://galaxy.ansible.com
Waiting until Galaxy import task https://galaxy.ansible.com/api/v2/collection-imports/352/ has completed
Collection has been successfully published and imported to the Galaxy server galaxy https://galaxy.ansible.com
Link: