title: ansible SSH connection fail
body: <p>I'm trying to run ansible role on multiple servers, but i get an error:</p>
  
  <blockquote>
    <p>fatal: [192.168.0.10]: UNREACHABLE! => {"changed": false, "msg":
    "Failed to connect to the host via ssh.", "unreachable": true}</p>
  </blockquote>
  
  <p>My /etc/ansible/hosts file looks like this:</p>
  
  <pre><code>192.168.0.10 ansible_sudo_pass='passphrase' ansible_ssh_user=user
  192.168.0.11 ansible_sudo_pass='passphrase' ansible_ssh_user=user
  192.168.0.12 ansible_sudo_pass='passphrase' ansible_ssh_user=user
  </code></pre>
  
  <p>I have no idea what's going on - everything looks fine - I can login via SSH, but ansible ping returns the same error.</p>
  
  <p>The log from verbose execution:</p>
  
  <blockquote>
    <p>&lt;192.168.0.10> ESTABLISH SSH CONNECTION FOR USER: user &lt;192.168.0.10>
    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 User=user -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r 192.168.0.10
    '/bin/sh -c '"'"'( umask 22 &amp;&amp; mkdir -p "<code>echo
    $HOME/.ansible/tmp/ansible-tmp-1463151813.31-156630225033829</code>" &amp;&amp;
    echo "<code>echo
    $HOME/.ansible/tmp/ansible-tmp-1463151813.31-156630225033829</code>"
    )'"'"''</p>
  </blockquote>
  
  <p>Can you help me somehow? If I have to use ansible in local mode (-c local), then it's useless.</p>
  
  <p>I've tried to delete ansible_sudo_pass and ansible_ssh_user, but it did'nt help.</p>