"PUTTING" or http PUT interacting with JFrog Artifactory

Hey everyone - if I was going to use an Ansible module to push or PUT a file into say JFrog Artfactory, using an API key, which of the Ansible modules would be best? I have looked at the uri module and the net_put but those do not seem to have the functionality that I would need.

I see get_url but that seems to be for the direction from the destination to the source.

Can anyone shed some light? Which module would be best for this job? I have never had to do this before and I’m a little lost.

Thanks - Glen

To put or post a file to an API I would usually use the uri module. Are you able to explain more what it seems to be missing or post an example? Thanks

Oh - yes.

Here is the scenario:

I have a JFrog Artifactory server, and I want to use Ansible to upoload/PUT files into the repos that I have in Artifactory. - attempting to use the uri module:

I posted what I had below - I am missing something I am sure.

Am I going about this the wrong way? Thanks for any help you can offer. It’s appreciated.

Hi

Use status code with respective error and try again