# "PUTTING" or  http PUT interacting with JFrog Artifactory

**URL:** <https://forum.ansible.com/t/putting-or-http-put-interacting-with-jfrog-artifactory/31060>\
**Category:** Ansible Project\
**Created:** [August 16, 2019, 12:08pm UTC](https://forum.ansible.com/t/putting-or-http-put-interacting-with-jfrog-artifactory/31060 "2019-08-16T12:08:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![GM1](https://avatars.discourse-cdn.com/v4/letter/g/7ab992/32.png) [@GM1](https://forum.ansible.com/u/GM1)\
**Post date:** [August 16, 2019, 12:08pm UTC](https://forum.ansible.com/t/putting-or-http-put-interacting-with-jfrog-artifactory/31060/1 "2019-08-16T12:08:53Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Zolvaring](https://avatars.discourse-cdn.com/v4/letter/z/ce73a5/32.png) [@Zolvaring](https://forum.ansible.com/u/Zolvaring)\
**Post date:** [August 16, 2019, 4:00pm UTC](https://forum.ansible.com/t/putting-or-http-put-interacting-with-jfrog-artifactory/31060/2 "2019-08-16T16:00:06Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![GM1](https://avatars.discourse-cdn.com/v4/letter/g/7ab992/32.png) [@GM1](https://forum.ansible.com/u/GM1)\
**Post date:** [August 16, 2019, 4:49pm UTC](https://forum.ansible.com/t/putting-or-http-put-interacting-with-jfrog-artifactory/31060/3 "2019-08-16T16:49:55Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![vinod93pop](https://avatars.discourse-cdn.com/v4/letter/v/ea5d25/32.png) [@vinod93pop](https://forum.ansible.com/u/vinod93pop)\
**Post date:** [August 18, 2019, 6:06pm UTC](https://forum.ansible.com/t/putting-or-http-put-interacting-with-jfrog-artifactory/31060/4 "2019-08-18T18:06:33Z")

</div>

Hi

Use status code with respective error and try again
