Re: [ansible-project] Re: New URI module from Romeo Theriault

2014-05-28 Thread Michael DeHaan
The rule in YAML is if you have a colon in the line, you must quote the whole line. In this case, the uri stuff probably needs quotes around the whole beast. You might find it easy to store the body in a vars: to make it a little easier to read. On Tue, May 27, 2014 at 5:51 PM, Guy Matz

[ansible-project] Re: New URI module from Romeo Theriault

2014-05-28 Thread Guy Matz
darned yaml/json . . . the space in my body was the problem! I had body='{rclass: local}' . . . needed to be body='{rclass:local}' Thanks all! -- You received this message because you are subscribed to the Google Groups Ansible Project group. To unsubscribe from this group and stop

[ansible-project] Re: New URI module from Romeo Theriault

2014-05-27 Thread Guy Matz
Sorry to be a bother . . . can anyone say how I should be formatting the data ion my body here: - name: artifactory | TEST - create repo uri: url={{ baseurl }}/api/repositories/__test__ method=PUT user=user password=password body='{rclass: local}' force_basic_auth=yes

Re: [ansible-project] Re: New URI module from Romeo Theriault

2014-03-24 Thread bryan hunt
Thanks Romeo, I have recreated a pull request. https://github.com/ansible/ansible/pull/6649 On Friday, March 21, 2014 5:45:45 PM UTC, Romeo Theriault wrote: On Fri, Mar 21, 2014 at 6:38 AM, bryan hunt picsol...@gmail.comjavascript: wrote: Yes, but there are two valid results, either 409

[ansible-project] Re: New URI module from Romeo Theriault

2014-03-21 Thread bryan hunt
I have this same issue when using it to create riak-cs admin users. riak-cs will return either 201 or 409 when sending a PUT request, never a 200. Unfortunately 201 triggers module failure, as 200 is what it expects. riak_cs | FAILED **msg: Status code was not 200, I can work around

[ansible-project] Re: New URI module from Romeo Theriault

2014-03-21 Thread bryan hunt
I have this same issue when using it to create riak-cs admin users. riak-cs will return either 201 or 409 when sending a PUT request, never a 200. Unfortunately 201 triggers module failure, as 200 is what it expects. riak_cs | FAILED **msg: Status code was not 200, On Monday, October 7,

Re: [ansible-project] Re: New URI module from Romeo Theriault

2014-03-21 Thread Michael DeHaan
There's a status_code option you can send. http://docs.ansible.com/uri_module.html On Fri, Mar 21, 2014 at 10:55 AM, bryan hunt picsolvebr...@gmail.comwrote: I have this same issue when using it to create riak-cs admin users. riak-cs will return either 201 or 409 when sending a PUT

Re: [ansible-project] Re: New URI module from Romeo Theriault

2014-03-21 Thread bryan hunt
Yes, but there are two valid results, either 409 or 201. On 21 Mar 2014, at 15:03, Michael DeHaan mich...@ansible.com wrote: There's a status_code option you can send. http://docs.ansible.com/uri_module.html On Fri, Mar 21, 2014 at 10:55 AM, bryan hunt picsolvebr...@gmail.com wrote:

Re: [ansible-project] Re: New URI module from Romeo Theriault

2014-03-21 Thread Romeo Theriault
On Fri, Mar 21, 2014 at 6:38 AM, bryan hunt picsolvebr...@gmail.com wrote: Yes, but there are two valid results, either 409 or 201. You may want to check out this pull request: https://github.com/ansible/ansible/pull/4383/files and possibly try resubmitting it the suggested fixes. This would