It looks like you're missing the port (9004) in the URI call. Which would
make sense because it's getting a "connection refused" socket level error.

On Thu, Jul 9, 2015 at 2:21 PM, <[email protected]> wrote:

> The playbook below works with CURL in SHELL but not URI
> ---
> - hosts: 10.1.3.163
>   user: ubuntu
>   sudo: yes
>   vars_files:
>      - vars.yml
>   tasks:
>     - name: Run curl
>       shell:  curl --request POST '
> http://localhost:9004/api/v1.0/abcd?abcdZipFile=/home/abcd/upload/abcd.zip
>
>
> On Monday, July 6, 2015 at 6:46:59 AM UTC-7, [email protected] wrote:
>>
>> I am getting a connection refused socket error :111 when using get_uri
>> module for POST of a zip file to a url . If i use curl command on shell the
>> task runs without error. How can i fix this issue?
>>
>>  --
> 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/9547ee93-cf5d-444f-84ca-49db1fc8948a%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/9547ee93-cf5d-444f-84ca-49db1fc8948a%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Romeo

-- 
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/CACUx58OQ35fsRtPWyFLTmKWT3rzCH9YVY89-orYVvkViWq%3Dpbg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to