# Upload and install file using uri module

**URL:** <https://forum.ansible.com/t/upload-and-install-file-using-uri-module/32088>\
**Category:** Ansible Project\
**Created:** [January 29, 2020, 5:32pm UTC](https://forum.ansible.com/t/upload-and-install-file-using-uri-module/32088 "2020-01-29T17:32:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amarnatha\_Reddy](https://avatars.discourse-cdn.com/v4/letter/a/d07c76/32.png) [@Amarnatha\_Reddy](https://forum.ansible.com/u/Amarnatha_Reddy)\
**Post date:** [January 29, 2020, 5:32pm UTC](https://forum.ansible.com/t/upload-and-install-file-using-uri-module/32088/1 "2020-01-29T17:32:10Z")

</div>

Hi All,

I am trying to upload and installing package on remote machine using uri module.

How to convert below existing method of curl to ansible uri module?

Upload a package AND install  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;curl -u admin:admin -F file=@"name of zip file" -F name="name of package"  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-F force=true -F install=true [http://localhost:4502/crx/packmgr/service.jsp](http://localhost:4502/crx/packmgr/service.jsp)

Kindly help someone please?

Amaranth

---

<div class="post-metadata">

**Author:** ![sivel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sivel/32/1198_2.png) [@sivel](https://forum.ansible.com/u/sivel)\
**Post date:** [January 29, 2020, 5:34pm UTC](https://forum.ansible.com/t/upload-and-install-file-using-uri-module/32088/2 "2020-01-29T17:34:24Z")

</div>

The uri module does not support multipart/form-data currently.

---

<div class="post-metadata">

**Author:** ![Amarnatha\_Reddy](https://avatars.discourse-cdn.com/v4/letter/a/d07c76/32.png) [@Amarnatha\_Reddy](https://forum.ansible.com/u/Amarnatha_Reddy)\
**Post date:** [January 29, 2020, 5:51pm UTC](https://forum.ansible.com/t/upload-and-install-file-using-uri-module/32088/3 "2020-01-29T17:51:23Z")

</div>

Thanks Matt,

So shell/command module is the only option to achieve aboverequirement?..is there any other possible ways ?and also any idea this was consider already and future version will available(just curiosity)?

My ansible 2.7.0

Amaranth
