"applications": [ *'*local$43d12cfd-f64a-4fa9-9367-3a0109c1721d" ]}'  has 
non-matching quotes in your action: shell task. That one right before local 
needs to be a double quote, I think.

On Friday, July 29, 2016 at 2:19:56 PM UTC-5, GBANE FETIGUE wrote:
>
> 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/b6067b9a-2565-47cd-9d48-e338398188b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to