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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to