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?
- uri: url=http://localhost:8080/store.json method=POST body="{{ lookup('file','test') }}" status_code=200 HEADER_Content-Type="application/json" test is a json file. Thanks Mark -- 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/CAC3qLoERED0henwxcnRzG9OkFkQMnnao1BTawTtL-XMhQihTpA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
