Can you show us the output.... I'm guessing it's probably some kind of quoting/yaml parsing issue.
On Wed, Feb 4, 2015 at 10:16 AM, Mark Olliver <[email protected]> wrote: > It does not get that far instead ansible tried to parse it and objects to > duplicate values which is valid in this case. > On 4 Feb 2015 19:04, "Giovanni Tirloni" <[email protected]> wrote: > >> On Wed, 04 Feb 2015 18:48 +0000, Mark Olliver <[email protected]> >> wrote: >> > 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=*MailScanner has detected a possible fraud attempt from >> "localhost:8080" claiming to be* http://localhost:8080/store.json >> <http://localhost:8080/store.json> method=POST body="{{ >> > lookup('file','test') }}" status_code=200 >> > HEADER_Content-Type="application/json" >> > >> > test is a json file. >> >> Hi Olivier, >> >> What's the error and what do you get on the server's logs? >> >> Giovanni >> >> -- >> 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/1423076675.33876.223141489.119A3E6B%40webmail.messagingengine.com >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- > 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/CAC3qLoEjvhecho4bLdvAZyNxoNA_d62m6N37cAJ7fGo2oXn_AQ%40mail.gmail.com > <https://groups.google.com/d/msgid/ansible-project/CAC3qLoEjvhecho4bLdvAZyNxoNA_d62m6N37cAJ7fGo2oXn_AQ%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Romeo -- 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/CACUx58MzjxRvV-oPBisUfp1A8Lk-spavuXyhbujO%2BUNExqy-9w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
