<p dir="auto">This seems to be a duplicate of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="231897878" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible/issues/25116" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible/issues/25116/hovercard" href="https://github.com/ansible/ansible/issues/25116">#25116</a>. But this issue has been closed automatically, and actually I have no problem with 14.04. So I will try to reformulate it better.</p>
<h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<ul dir="auto">
<li>ssh</li>
</ul>
<h5 dir="auto">ANSIBLE VERSION</h5>
<p dir="auto">Ansible 2.3.1.0 and 2.3.0.0</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.3.1.0
  config file = /home/gsubiron/ansible.cfg
  configured module search path = Default w/o overrides
  python version = 2.7.9 (default, Jun 29 2016, 13:08:31) [GCC 4.9.2]"><pre class="notranslate"><code class="notranslate">ansible 2.3.1.0
  config file = /home/gsubiron/ansible.cfg
  configured module search path = Default w/o overrides
  python version = 2.7.9 (default, Jun 29 2016, 13:08:31) [GCC 4.9.2]
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[defaults]

gathering=explicit
fact_caching=redis
fact_caching_timeout=86400

[privilege_escalation]

become=True
become_user=root
become_method=sudo
become_ask_pass=True"><pre class="notranslate"><code class="notranslate">[defaults]

gathering=explicit
fact_caching=redis
fact_caching_timeout=86400

[privilege_escalation]

become=True
become_user=root
become_method=sudo
become_ask_pass=True
</code></pre></div>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">Ansible is running on Debian 8 (Jessie). The host managed is an old Ubuntu 10.04.</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">Since 2.3, Ansible cannot connect on my Ubuntu 10.04 (LTS) host.</p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="231897878" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible/issues/25116" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible/issues/25116/hovercard" href="https://github.com/ansible/ansible/issues/25116">#25116</a> seems to say it also concerns Ubuntu 14.04 LTS, but It works well for me on 14.04 servers. It must depends on SSH configuration.</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible myhost.sysnove.net -m ping -vvvv"><pre class="notranslate"><code class="notranslate">ansible myhost.sysnove.net -m ping -vvvv
</code></pre></div>
<h5 dir="auto">EXPECTED RESULTS</h5>
<p dir="auto">It is working fine with Ansible 2.2.0.0</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="myhost.sysnove.net | SUCCESS =&gt; {
    &quot;changed&quot;: false, 
    &quot;invocation&quot;: {
        &quot;module_args&quot;: {
            &quot;data&quot;: null
        }, 
        &quot;module_name&quot;: &quot;ping&quot;
    }, 
    &quot;ping&quot;: &quot;pong&quot;
}"><pre class="notranslate"><span class="pl-s">myhost.sysnove.net | SUCCESS =&gt; {</span>
    <span class="pl-s"><span class="pl-pds">"</span><span class="pl-ent">changed</span><span class="pl-pds">"</span></span>: <span class="pl-s">false, </span>
    <span class="pl-s"><span class="pl-pds">"</span><span class="pl-ent">invocation</span><span class="pl-pds">"</span></span>: <span class="pl-s">{</span>
        <span class="pl-s"><span class="pl-pds">"</span><span class="pl-ent">module_args</span><span class="pl-pds">"</span></span>: <span class="pl-s">{</span>
            <span class="pl-s"><span class="pl-pds">"</span><span class="pl-ent">data</span><span class="pl-pds">"</span></span>: <span class="pl-c1">null</span>
        <span class="pl-s">}, </span>
        <span class="pl-s"><span class="pl-pds">"</span><span class="pl-ent">module_name</span><span class="pl-pds">"</span></span>: <span class="pl-s"><span class="pl-pds">"</span>ping<span class="pl-pds">"</span></span>
    <span class="pl-s">}, </span>
    <span class="pl-s"><span class="pl-pds">"</span><span class="pl-ent">ping</span><span class="pl-pds">"</span></span>: <span class="pl-s"><span class="pl-pds">"</span>pong<span class="pl-pds">"</span></span>
<span class="pl-s">}</span></pre></div>
<h5 dir="auto">ACTUAL RESULTS</h5>
<p dir="auto">But not with Ansible 2.3.0.0 and 2.3.1.0</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="myhost.sysnove.net | UNREACHABLE! =&gt; {
    &quot;changed&quot;: false, 
    &quot;msg&quot;: &quot;Failed to connect to the host via ssh: OpenSSH_6.7p1 Debian-5+deb8u3, OpenSSL 1.0.1t  3 May 2016\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 10613\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Control master terminated unexpectedly\r\nCouldn't read packet: Connection reset by peer\r\n&quot;, 
    &quot;unreachable&quot;: true
}"><pre class="notranslate"><span class="pl-s">myhost.sysnove.net | UNREACHABLE! =&gt; {</span>
    <span class="pl-s"><span class="pl-pds">"</span><span class="pl-ent">changed</span><span class="pl-pds">"</span></span>: <span class="pl-s">false, </span>
    <span class="pl-s"><span class="pl-pds">"</span><span class="pl-ent">msg</span><span class="pl-pds">"</span></span>: <span class="pl-s"><span class="pl-pds">"</span>Failed to connect to the host via ssh: OpenSSH_6.7p1 Debian-5+deb8u3, OpenSSL 1.0.1t  3 May 2016<span class="pl-cce">\r\n</span>debug1: Reading configuration data /etc/ssh/ssh_config<span class="pl-cce">\r\n</span>debug1: /etc/ssh/ssh_config line 19: Applying options for *<span class="pl-cce">\r\n</span>debug1: auto-mux: Trying existing master<span class="pl-cce">\r\n</span>debug2: fd 3 setting O_NONBLOCK<span class="pl-cce">\r\n</span>debug2: mux_client_hello_exchange: master version 4<span class="pl-cce">\r\n</span>debug3: mux_client_forwards: request forwardings: 0 local, 0 remote<span class="pl-cce">\r\n</span>debug3: mux_client_request_session: entering<span class="pl-cce">\r\n</span>debug3: mux_client_request_alive: entering<span class="pl-cce">\r\n</span>debug3: mux_client_request_alive: done pid = 10613<span class="pl-cce">\r\n</span>debug3: mux_client_request_session: session request sent<span class="pl-cce">\r\n</span>debug1: mux_client_request_session: master session id: 2<span class="pl-cce">\r\n</span>debug3: mux_client_read_packet: read header failed: Broken pipe<span class="pl-cce">\r\n</span>debug2: Control master terminated unexpectedly<span class="pl-cce">\r\n</span>Couldn't read packet: Connection reset by peer<span class="pl-cce">\r\n</span><span class="pl-pds">"</span></span><span class="pl-s">, </span>
    <span class="pl-s"><span class="pl-pds">"</span><span class="pl-ent">unreachable</span><span class="pl-pds">"</span></span>: <span class="pl-c1">true</span>
<span class="pl-s">}</span></pre></div>
<p dir="auto">I was trying to share comon tasks includes between roles, by using<br>
the following dir structure:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="util/
   include1
   include2
roles
  foo
    templates
      tmpl1
    tasks
      task1
      task2
      util -&gt; ../../../util
  bar
    tasks
      task3
      task4
      util -&gt; ../../../util"><pre class="notranslate"><code class="notranslate">util/
   include1
   include2
roles
  foo
    templates
      tmpl1
    tasks
      task1
      task2
      util -&gt; ../../../util
  bar
    tasks
      task3
      task4
      util -&gt; ../../../util
</code></pre></div>
<p dir="auto">and then including <code class="notranslate">util/include1</code> from task1/2/3/4.</p>
<p dir="auto">However, I found that when include1 has a <code class="notranslate">template</code> (and presumably<br>
a <code class="notranslate">copy</code>) task, tmpl1 isn't found because foo/tasks/templates/ is searched<br>
rather then templates/.</p>