Hi All,
we are running ansible on our network and have just deployed a proxy as we needed to cut off direct internet access. when trying to run a playbook that calls wsman i get this error
fatal: [10.22.0.109]: UNREACHABLE! => {"changed": false, "msg": "credssp: HTTPSConnectionPool(host='10.22.0.109', port=5986): Max retries exceeded with url: /wsman (Caused by ProxyError('Cannot connect to proxy.', timeout('timed out')))", "unreachable": true}
the playbook look like this:
become: true
become_method: runas
environment:
ansible_winrm_proxy: ~
roles:
I also tired setting ansible_winrm_proxy in my inventory but still not joy
i dont think we want to go via the proxy at all for this
Any suggestions
thanks
Please give some more details of your network setup - specifically, the routing
between your ansible server and the machine/s you're deploying / managing with
it.
Please make it clear where the proxy server fits in to this routing.
You say you needed to cut off direct Internet access, but you are trying to
manage a machine with the address 10.22.0.109, so how does "direct Internet
access" come into this?
Are you trying to access this machine from a totally different network (across
the Internet)?
Hi
It is all hosted in gcp but all the machines are on the same network.
I’m using the IP address so ansible should connect directly instead of using gcp
The proxy sits between the workstation and the outside works.
The playbook that I get the error is for my workstion ont he same gcp network as the end machine.
I mentioned internet being cut off as the errror mentioned a proxy
Anything else you need
Thanks
Adam