Re: [ansible-devel] URI module cannot use body and src together

2021-05-19 Thread Wilber H
Hi Matt, I followed the steps in the section and tried several combinations of it and still get this message or something similar - "msg": "value of the body_format must be one of: form-urlencoded, json, raw, got: form-multipart" *note: this is the body section of the URI module/task - file1

Re: [ansible-devel] URI module cannot use body and src together

2021-05-19 Thread Matt Martz
It sounds like you are trying to do a multipart post. In which case, just use body, and follow the example named "Upload a file via multipart/form-multipart" https://docs.ansible.com/ansible/latest/collections/ansible/builtin/uri_module.html On Wed, May 19, 2021 at 10:49 AM Wilber H wrote: > H