On 29. juli 2016 21:19, GBANE FETIGUE wrote:
I use action module and shell to run the curl here is what I have done so
far:
- action: shell curl --basic -u admin:admin -d
'{"name":"ms3-simple-hello-world-app", "servers": [
'local$d50bdc24-ff04-4327-9284-7bb708e21c25' ], "applications": [
'local$43d12cfd-f64a-4fa9-9367-3a0109c1721d" ]}' --header 'Content-Type:
application/json' http://52.73.56.141:8080/mmc-console-3.6.2/api/deployments
  register: deployment
- name: what got saved
  debug: var=deployment

but I am having syntax error any ideas ?

You should check your qoutes, and make sure they are matching pair.
And you can not have a colon with a space after it in the command, this will make the yaml parser fail.

--
Kai Stian Olstad

--
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/cbde2c6a-c468-8b02-70cf-8c7e49431391%40olstad.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to