I added the port and tested again. here is the error I get.
####################
failed: [10.1.3.163] => (item=abcd_v3.0_Monthly_Master_20150701.ZIP) =>
{"content": "", "content_length": "0", "failed": true, "item":
"abcd_v3.0_Monthly_Master_20150701.ZIP", "redirected": false, "status": 500}
msg: Status code was not [200]
...ignoring
#################
This is the task in the playbook
- name: Curl to post to xxxx
uri:
url: http://localhost:9004/api/v1.0/abcd?abcdZipFile={{ item }}
method: POST
status_code: 200
with_items: abcdUPLOAD.stdout_lines
register: status
ignore_errors: True
- debug: var=status
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/fd9c9e16-c8fe-4377-ac49-9e877063f509%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.