When I run ansible all -m ping -vvvv from the controller to the client (ubuntu) I get the following -
Loaded callback minimal of type stdout, v2.0
<10.10.128.0> ESTABLISH WINRM CONNECTION FOR USER: Administrator on PORT 5986 TO 10.10.128.0
<10.10.128.2> ESTABLISH SSH CONNECTION FOR USER: None
<10.10.128.2> SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r 10.10.128.2 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1472067867.19-242906541295629 `" && echo ansible-tmp-1472067867.19-242906541295629="` echo $HOME/.ansible/tmp/ansible-tmp-1472067867.19-242906541295629 `" ) && sleep 0'"'"''
10.10.128.2 | UNREACHABLE! => {
"changed": false,
"msg": "Failed to connect to the host via ssh.",
"unreachable": true
Verified that ssh works fine if i run it from command line on the controller.
Any ideas? I verified that the same user exists on both machines (admin). admin was used to setup ssh.
Ansible itself was installed by root on the controller.
Any ideas? Thanks