Hi,
I have the following line but i fear the uri module is not encoding the file first and thus fails to send the file. I tried to set a variable via a command and uuencode but that also failed - any ideas or do i need to shell and use curl to post?
test is a json file.
Thanks
Mark
Hi Olivier,
What's the error and what do you get on the server's logs?
Giovanni
It does not get that far instead ansible tried to parse it and objects to duplicate values which is valid in this case.
Also, if your run the playbook in verbose mode, you’ll see what ansible is sending. This can help you determine what might be wrong with the sent data.
Also, use the ‘return_content=yes’ on the task to see what the server is responding.
Showing us those two things can help you troubleshoot…
Can you show us the output… I’m guessing it’s probably some kind of quoting/yaml parsing issue.