I still have the same issue any other ideas ?

- local_action: curl --basic -u admin:admin -d '"name": "ms3-test-app"' , 
"servers": [ "local$d50bdc24-ff04-4327-9284-7bb708e21c25" ] "applications": 
[ "local$6444f208-f78c-4e1b-8b1e-4542f511f503" ] --header 'Content-Type: 
application/json' http://52.73.56.141:8080/mmc-console-3.6.2/api/deployments

On Friday, July 29, 2016 at 5:20:03 PM UTC-4, Joanna Delaporte wrote:
>
> "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/3b41d9ed-91e4-4a7c-ab7e-b0a07c652968%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to