Ansible doesn't connect to server - Connection timed out -


i try connect server using ansible. have installed ubuntu server openssh. add public key on server , when try connect server using ssh works:

ssh ubuntu@92.168.0.14 

so create ansible inventory file hosts

[dbservers] 192.16.0.14 ansible_ssh_port=22 ansible_ssh_user=ubuntu 

and next try run command:

ansible -i hosts -m ping -vvvv 

but when run error:

<192.16.0.14> establish connection user: ubuntu <192.16.0.14> remote_module ping <192.16.0.14> exec ['ssh', '-c', '-tt', '-vvv', '-o', 'controlmaster=auto', '-o', 'controlpersist=60s', '-o', 'controlpath=/home/karol/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 'port=22', '-o', 'identityfile=/home/karol/.ssh/id_rsa', '-o', 'kbdinteractiveauthentication=no', '-o', 'preferredauthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'passwordauthentication=no', '-o', 'user=ubuntu', '-o', 'connecttimeout=10', '192.16.0.14', "/bin/sh -c 'mkdir -p $home/.ansible/tmp/ansible-tmp-1431369235.84-48071922815331 && chmod a+rx $home/.ansible/tmp/ansible-tmp-1431369235.84-48071922815331 && echo $home/.ansible/tmp/ansible-tmp-1431369235.84-48071922815331'"] 192.16.0.14 | failed => ssh encountered unknown error. output was: openssh_6.6.1, openssl 1.0.1f 6 jan 2014 debug1: reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: applying options * debug1: auto-mux: trying existing master debug1: control socket "/home/karol/.ansible/cp/ansible-ssh-192.16.0.14-22-ubuntu" not exist debug2: ssh_connect: needpriv 0 debug1: connecting 192.16.0.14 [192.16.0.14] port 22. debug2: fd 3 setting o_nonblock debug1: connect address 192.16.0.14 port 22: connection timed out ssh: connect host 192.16.0.14 port 22: connection timed out 

i use same identity file why ansible can't connect server?


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -