<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="19928289" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible/issues/4213" data-hovercard-type="pull_request" data-hovercard-url="/ansible/ansible/pull/4213/hovercard" href="https://github.com/ansible/ansible/pull/4213">#4213</a> added support to address instances by their names in route53, but a host_vars file with the same name is not being picked up by ansible.</p>
<h5 dir="auto">ISSUE TYPE</h5>
<p dir="auto">Bug Report</p>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">ssh connection plugin</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.0.2.0
config file = /root/rescube-devops/ansible/ansible.cfg
configured module search path = Default w/o overrides"><pre class="notranslate"><code class="notranslate">ansible 2.0.2.0
config file = /root/rescube-devops/ansible/ansible.cfg
configured module search path = Default w/o overrides
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">ansible adds the -q (quiet) option when using ssh, but this hides the errors produced by ssh even when using -vvv</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<p dir="auto">try to connect to a host with  authorized keys not set up</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible-playbook playbook.yml  -vvv"><pre class="notranslate"><code class="notranslate">ansible-playbook playbook.yml  -vvv
</code></pre></div>
<h5 dir="auto">EXPECTED RESULTS</h5>
<p dir="auto">The output should contain the string (the stderr from ssh when not using -q):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Permission denied (publickey,password)."><pre class="notranslate"><code class="notranslate">Permission denied (publickey,password).
</code></pre></div>
<h5 dir="auto">ACTUAL RESULTS</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="fatal: [targetmachine]: UNREACHABLE! =&gt; {&quot;changed&quot;: false, &quot;msg&quot;: &quot;Failed to connect to the host via ssh.&quot;, &quot;unreachable&quot;: true}
    to retry, use: --limit @playbook.retry
PLAY RECAP *********************************************************************
targetmachine                  : ok=0    changed=0    unreachable=1    failed=0   "><pre class="notranslate"><code class="notranslate">fatal: [targetmachine]: UNREACHABLE! =&gt; {"changed": false, "msg": "Failed to connect to the host via ssh.", "unreachable": true}
    to retry, use: --limit @playbook.retry
PLAY RECAP *********************************************************************
targetmachine                  : ok=0    changed=0    unreachable=1    failed=0   
</code></pre></div>
<p dir="auto">I believe -vvv should turn off the -q for ssh and show the ssh output to the user, to help diagnose the problem. Also ansible-playbook -vvvv could even enable -vvv for ssh (and only display if retval!=0) :)</p>