On 31. juli 2016 20:28, GBANE FETIGUE wrote:
"local$41d39485-d193-4d4b-ae59-1440d2b5c858"}*but the response that I am
having is this one :
ok: [ip-172-31-61-191.ec2.internal] => {
"deployment": {
"changed": true,
"cmd": [
"curl",
"--basic",
"-u",
"admin:admin",
"-d",
"{\"name:ms3-test-app\"
\"servers:[local$d50bdc24-ff04-4327-9284-7bb708e21c25\"]
\"applications:[local$88853b6a-0894-4afc-be83-6f76d2e9d9bb\"]}",
"--header",
"Content-Type:application/json",
"http://52.73.56.141:8080/mmc-console-3.6.2/api/deployments"
],
"delta": "0:00:00.015622",
"end": "2016-07-31 18:13:11.427146",
"rc": 0,
"start": "2016-07-31 18:13:11.411524",
"stderr": " % Total % Received % Xferd Average Speed Time
Time Time Current\n Dload Upload
Total Spent Left Speed\n\r 0 0 0 0 0 0 0
0 --:--:-- --:--:-- --:--:-- 0\r100 11731 0 11595 100 136 974k
11708 --:--:-- --:--:-- --:--:-- 1029k",
You have not pasted everything, in stdout you will find the output of curl.
That's not what i was expecting I don't why but when I run that curl
command manually it works fine :
[ec2-user@ip-172-31-21-77 playbooks]$ 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
>
A deployment with that name already exists chose another name please or
remove existing one[ec2-user@ip-172-31-21-77 playbooks]$
This output you'll find in the stdout.
--
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/d1e2425b-c6e7-e5ab-86eb-f37612d42ee4%40olstad.com.
For more options, visit https://groups.google.com/d/optout.