OS: centos
We have ansible script
OS: centos
We have ansible script
OS: centos
We have ansible script
---
- name: Check connectivity to AO
uri:
url: "{{pao_url}}"
validate_certs: falsepao_url = https://10.184.97.51:31273
This url is accesible from the macine same doesnot work from ansible script...
Which command line do you use on the target for accessing the URL?
Do you have by any chance HTTP(S) proxies configured on the target machine?
Regards
Racke
curl -v https://10.184.97.51:31273
CONNECT 10.184.97.51:31273 HTTP/1.1
Host: 10.184.97.51:31273
User-Agent: curl/7.29.0
Proxy-Connection: Keep-Alive
< HTTP/1.1 200 Connection Established
< Proxy-Agent: Zscaler/6.0
<
Proxy replied OK to CONNECT request
Initializing NSS with certpath: sql:/etc/pki/nssdb
CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
NSS error -5961 (PR_CONNECT_RESET_ERROR)
TCP connection reset by peer
Closing connection 0
curl: (35) TCP connection reset by peer
This also works from the browser. I see login page
https://10.184.97.51:31273
This was due to proxy issue…i removed the proxy and it worked…Thanks
This also works from the browser. I see login page
https://10.184.97.51:31273/>
Yes, because they know of that proxy.
You can specify environment variables either at playbook level or directly in your task:
- name: Check connectivity to AO
uri:
url: "{{pao_url}}"
validate_certs: false
environment:
http_proxy: http://some.corporate.corp.com
https_proxy: http://some.corporate.corp.com
Regards
Racke