Hey everyone,

so, I am trying to upload an xml template with the uri module, but I cannot 
find a way which is working. Mostly I am getting the error "Error in XML 
file.  Possible mismatch between resource specified in the URL and XML file", 
but the curl command is working with that file.

The last thing I have tried is:

   - name: upload xml
     uri:
       url: https://serverFQDN/path
       method: POST
       user: user
       password: password
       src: "{{ lookup('template', 'dp_.xml') }}"


I also tried different things with "body" instead of "src", which is also 
not working.

-- 
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/d7f96ddb-d521-4231-b065-7481fbf618ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to