Upload and install file using uri module

388 views
Skip to first unread message

Amarnatha Reddy

unread,
Jan 29, 2020, 12:32:11 PM1/29/20
to Ansible Project
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
curl -u admin:admin -F file=@"name of zip file" -F name="name of package"
-F force=true -F install=true http://localhost:4502/crx/packmgr/service.jsp

Kindly help someone please?

Amaranth

Matt Martz

unread,
Jan 29, 2020, 12:35:22 PM1/29/20
to ansible...@googlegroups.com
The uri module does not support multipart/form-data currently.

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/21ae3bf5-4f5d-46a2-af32-8b92f9d177e3%40googlegroups.com.


--
Matt Martz
@sivel
sivel.net

Amarnatha Reddy

unread,
Jan 29, 2020, 12:51:24 PM1/29/20
to Ansible Project
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

Reply all
Reply to author
Forward
0 new messages