I have installed ansible 2.7 rc1 because I need a way to install stuff on
a windows machine via Linux server as a tunnel.
After reading and trial and error, I have realized that it cannot be done
using WinRM but only using psrp with ansible 2.7.
I'm not sure what should be configured in the ansible_psrp_proxy parameter
and how can ansible know that the tunnel is server is a Linux one that
needs to connect using ssh.
I have tried to configure the ansible.cfg to read a ssh.cfg file with the
following content:
Host <windows machine IP>
ProxyCommand ssh -W %h:%p ec2-user@<Linux server IP>
IdentityFile <path to pem file>
Host bastion
Hostname <Linux server IP>
User ec2-user
IdentityFile <path to pem file>
ForwardAgent yes
ControlMaster auto
ControlPath ~/.ssh/ansible-%r@%h:%p
ControlPersist 5m
Error message looks like that:
ConnectTimeout: HTTPSConnectionPool(host='<windows machine IP>',
port=5986): Max retries exceeded with url: /wsman (Caused by
ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at
0x7fb8ed6901d0>, u'Connection to <Linux server IP> timed out. (connect
timeout=30)'))
54.227.79.55 | FAILED! => {
"msg": "Unexpected failure during module execution.",
"stdout": ""
}
Don't know which protocol it uses to connect to the Linux server but I
assume it is not ssh.
Thanks
Gil
--
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/3cdeb9d9-9e77-4031-b192-1047cb15cec5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.