Hello The following curl from the host to the provision servers works fine: curl -X POST --header "Content-Type: application/json" -d @file.json http: //public-ip/api
Trying to use uri module for the same, I used: - local_action: uri url=http://public-ip/api method=POST body="{{ lookup('file','file.json') }}" HEADER_Content-Type="application/json" sudo: false Only to get msg: this module requires key=value arguments Any idea whats going on here? Thanks -- 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/7bb1abc8-74f2-41c2-a4ac-4106718926ea%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
