Hi guys,
I have some issue with ansible I want to Convert a Json array in Ansible 
but still having error message here is the JSon. 
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

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 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/cd22eae9-6a9b-46e9-9bad-d3a23e938a9b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to