Fatal 191.168.0,2, ansible -playbook

vagrant@ansible:~$ ansible-playbook -i hosts -u root nginx.yml

PLAY [webservers] *************************************************************

GATHERING FACTS ***************************************************************
fatal: [191.168.0.2] => SSH encountered an unknown error during the connection. We recommend you re-run the command using -vvvv, which will enable SSH debugging output to help diagnose the issue

TASK: [install nginx] *********************************************************
FATAL: no hosts matched or all hosts have already failed – aborting

PLAY RECAP ********************************************************************
to retry, use: --limit @/home/vagrant/nginx.retry

191.168.0.2 : ok=0 changed=0 unreachable=1 failed=0

vagrant@ansible:~$ ansible-playbook -i hosts -u root nginx.yml

PLAY [webservers] *************************************************************

GATHERING FACTS ***************************************************************
fatal: [191.168.0.2] => SSH encountered an unknown error during the connection. We recommend you re-run the command using -vvvv, which will enable SSH debugging output to help diagnose the issue

TASK: [install nginx] *********************************************************
FATAL: no hosts matched or all hosts have already failed – aborting

PLAY RECAP ********************************************************************
to retry, use: --limit @/home/vagrant/nginx.retry

191.168.0.2 : ok=0 changed=0 unreachable=1 failed=0

[…]

191.168.0.2 : ok=0 changed=0 unreachable=1 failed=0

Well, it's pingable :slight_smile:

$ ping 191.168.0.2
PING 191.168.0.2 (191.168.0.2): 56 data bytes
64 bytes from 191.168.0.2: icmp_seq=0 ttl=47 time=479.557 ms
64 bytes from 191.168.0.2: icmp_seq=1 ttl=47 time=500.364 ms
^C
--- 191.168.0.2 ping statistics ---
2 packets transmitted, 2 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 479.557/489.961/500.364/10.403 ms

… but SSH isn't running:

$ telnet 191.168.0.2 22
Trying 191.168.0.2...
telnet: connect to address 191.168.0.2: Connection refused
telnet: Unable to connect to remote host

However, maybe you actually just wanted to reach 192… and not 191… ;_)

SCNR
-Andi

Hi ,

yeah still not working…the recommendation to run -vvvv … also no joy…

Thanks