Convert Json to Yaml

18 views
Skip to first unread message

GBANE FETIGUE

unread,
Jul 30, 2016, 9:35:36 PM7/30/16
to Ansible Project
Hi guys,

I  know this is a little of topic but it's regarding unusable I have a curl command that i would like to translate in ansible but someway or somehow is not working. could anybody help me ? Here is the curl command
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

GBANE FETIGUE

unread,
Jul 31, 2016, 9:15:47 AM7/31/16
to Ansible Project
Here is what I did  but still not working
- 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
Reply all
Reply to author
Forward
0 new messages