title: Authentication or permission failure for some hosts in inventory
body: <p>I have a inventory with around 10 hosts and my playbook runs on all except 2. I am able to login to those 2 hosts passwordlessly from Ansible Server. But when I run the playbook or even a simple ping module I get error:</p>
  
  <pre><code>192.168.x.xxx | UNREACHABLE! =&gt; {
  "changed": false,
  "msg": "Authentication or permission failure. In some cases, you may have been able to authenticate and did not have permissions on the remote directory. Consider changing the remote temp path in ansible.cfg to a path rooted in \"/tmp\". Failed command was: ( umask 77 &amp;&amp; mkdir -p \"` echo $HOME/.ansible/tmp/ansible-tmp-1498895076.45-202255130489130 `\" &amp;&amp; echo ansible-tmp-1498895076.45-202255130489130=\"` echo $HOME/.ansible/tmp/ansible-tmp-1498895076.45-202255130489130 `\" ), exited with result 1",
  "unreachable": true
  }
  </code></pre>
  
  <p>I have already tried changing the a<code>nsible.cfg</code> for <code>remote_dir</code>, changed connection type as suggested in <a href="https://github.com/ansible/ansible/issues/5725" rel="nofollow noreferrer">https://github.com/ansible/ansible/issues/5725</a></p>
  
  <p>The verbose mode output is:</p>
  
  <pre><code>Using /etc/ansible/ansible.cfg as config file
  Loading callback plugin minimal of type stdout, v2.0 from /usr/lib/python2.7/site-packages/ansible/plugins/callback/__init__.pyc
  Using module file /usr/lib/python2.7/site-packages/ansible/modules/core/system/ping.py
  &lt;192.168.x.xxx&gt; ESTABLISH SSH CONNECTION FOR USER: None
   Using module file /usr/lib/python2.7/site-packages/ansible/modules/core/system/ping.py
  &lt;192.168.x.xxx&gt; SSH: ansible.cfg set ssh_args: (-C)(-o)(ControlMaster=auto)(-o)(ControlPersist=60s)
   &lt;192.168.x.xxx&gt; SSH: ansible_password/ansible_ssh_pass not set: (-o)(KbdInteractiveAuthentication=no)(-o)(PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey)(-o)(PasswordAuthentication=no)
  &lt;192.168.x.xxx&gt; SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10)
  &lt;192.168.x.xxx&gt; SSH: PlayContext set ssh_common_args: ()
  &lt;192.168.x.xxx&gt; SSH: PlayContext set ssh_extra_args: ()
  &lt;192.168.x.xxx&gt; SSH: found only ControlPersist; added ControlPath: (-o)(ControlPath=/home/webtech/.ansible/cp/ansible-ssh-%h-%p-%r)
  &lt;192.168.x.xxx&gt; SSH: EXEC ssh -vvv -C -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=/home/webtech/.ansible/cp/ansible-ssh-%h-%p-%r 192.168.x.xxx '/bin/sh -c '"'"'( umask 77 &amp;&amp; mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1498903623.28-136703981609211 `" &amp;&amp; echo ansible-tmp-1498903623.28-136703981609211="` echo $HOME/.ansible/tmp/ansible-tmp-1498903623.28-136703981609211 `" ) &amp;&amp; sleep 0'"'"''
  </code></pre>
  
  <p>Nothing helped. 
  Please help me, how can I run my playbook in those 2 hosts?</p>