Thank you! get_url works. The tricky part was figuring out the url to the file I wanted.
On Friday, May 3, 2019 at 11:14:21 AM UTC-4, Gonéri Le Bouder wrote: > > spongebob33167 <[email protected] <javascript:>> writes: > > > With vsphere_copy, I can upload files to a vsphere datastore, but I want > to > > download a .vmdk file from a datastore to my local server. Is there an > > ansible module that will let me download from a datastore? > > Hi Spongebob33167! > > You can already browse the /folder end-point with a browser and so use > the get_url module: > > e.g: https://192.168.1.40/folder on my ESXi returns a listing of the > datacenter. And I can navigate to finally download a file. > > The API documentation: > > https://pubs.vmware.com/vsphere-6-5/index.jsp?topic=%2Fcom.vmware.vcli.examples.doc%2FGUID-7675E084-5A80-4517-83B7-6BBC69F8D145.html > > > Regards, > -- > Gonéri Le Bouder > -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/fb52e05d-bd99-49ce-83ec-b3e5ffd0652a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
