OOI - why aren't you using http://docs.ansible.com/ansible/uri_module.html ? maybe I missed that ... maybe have a look see if that will solve the curl'ing issues ?
Alex On 31 July 2016 at 17:21, Kai Stian Olstad <[email protected]> wrote: > On 31. juli 2016 17:39, GBANE FETIGUE wrote: > >> *now here is the error I am getting; anyother ideas The error appears to >> have been in '/etc/ansible/playbooks/deployment.yml': line 2, column 3, >> but >> maybe elsewhere in the file depending on the exact syntax problem.* >> The offending line appears to be: >> >> >> - 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" >> ^ here >> > > It should have worked I guess. > But if you replace local_action with command and add delegate_to, it will > work > > - command: curl............ > delegate_to: localhost > > -- > 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/6a66b5d1-7424-8db8-66d8-20d7c2faa9c2%40olstad.com > . > > For more options, visit https://groups.google.com/d/optout. > -- 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/CACSH3MvhDfTwU1dn59AR2DcO9Sh1ncdHvhy7j23XS%3Dueb6Fc_g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
