On Tue, 28 Feb 2017, at 14:38, norricorp wrote:
> many thanks to both of you for the replies.
> I tried both shell and command modules with the curl command and a
> curl: (7) Failed connect to centos7-ansible:8080; Connection
> refused"
I would check to see if this is resolving to an IPv6 address at one end
and listening on IPv4 only at the other, or some variation on that.
Try doing that with `curl -v4sk ...` (force ipv4, verbose output, silent
response, ignore SSL certificate chain) and see whether that provides
more info. Sharing the output here may get you the info you need.
Either way, the next logical step here is to run a packet capture (ngrep
or tcpdump for example) which will probably make it very obvious what is
failing.
A+
Dave