<h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">Core</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2.4.0.0"><pre class="notranslate"><code class="notranslate">2.4.0.0
</code></pre></div>
<p dir="auto">(Probably. Install busted so it's hard to tell.)</p>
<h5 dir="auto">CONFIGURATION</h5>
<p dir="auto">Not got that far</p>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">macOS Sierra 10.12.6 (16G29)<br>
Xcode 9.0 installed</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">Can't install: <code class="notranslate">sudo pip install ansible --upgrade</code> crashes on a missing <code class="notranslate">opensslv.h</code> file.</p>
<p dir="auto">NOTE: Possibly a duplicate of (closed) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="158366044" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible/issues/16120" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible/issues/16120/hovercard" href="https://github.com/ansible/ansible/issues/16120">#16120</a>, but on macOS, there isn't an openssl-devel that's around to install.</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ sudo pip install ansible --upgrade"><pre class="notranslate"><code class="notranslate">$ sudo pip install ansible --upgrade
</code></pre></div>
<h5 dir="auto">EXPECTED RESULTS</h5>
<p dir="auto">Ansible gets installed.</p>
<h5 dir="auto">ACTUAL RESULTS</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="reading manifest file 'src/cryptography.egg-info/SOURCES.txt'

reading manifest template 'MANIFEST.in'

no previously-included directories found matching 'docs/_build'

warning: no previously-included files matching '*' found under directory 'vectors'

writing manifest file 'src/cryptography.egg-info/SOURCES.txt'

running build_ext

generating cffi module 'build/temp.macosx-10.12-intel-2.7/_padding.c'

creating build/temp.macosx-10.12-intel-2.7

generating cffi module 'build/temp.macosx-10.12-intel-2.7/_constant_time.c'

generating cffi module 'build/temp.macosx-10.12-intel-2.7/_openssl.c'

building '_openssl' extension

creating build/temp.macosx-10.12-intel-2.7/build

creating build/temp.macosx-10.12-intel-2.7/build/temp.macosx-10.12-intel-2.7

cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c build/temp.macosx-10.12-intel-2.7/_openssl.c -o build/temp.macosx-10.12-intel-2.7/build/temp.macosx-10.12-intel-2.7/_openssl.o -Wconversion -Wno-error=sign-conversion

build/temp.macosx-10.12-intel-2.7/_openssl.c:483:10: fatal error: 'openssl/opensslv.h' file not found

#include &lt;openssl/opensslv.h&gt;

         ^~~~~~~~~~~~~~~~~~~~

1 error generated.

error: command 'cc' failed with exit status 1"><pre class="notranslate"><code class="notranslate">reading manifest file 'src/cryptography.egg-info/SOURCES.txt'

reading manifest template 'MANIFEST.in'

no previously-included directories found matching 'docs/_build'

warning: no previously-included files matching '*' found under directory 'vectors'

writing manifest file 'src/cryptography.egg-info/SOURCES.txt'

running build_ext

generating cffi module 'build/temp.macosx-10.12-intel-2.7/_padding.c'

creating build/temp.macosx-10.12-intel-2.7

generating cffi module 'build/temp.macosx-10.12-intel-2.7/_constant_time.c'

generating cffi module 'build/temp.macosx-10.12-intel-2.7/_openssl.c'

building '_openssl' extension

creating build/temp.macosx-10.12-intel-2.7/build

creating build/temp.macosx-10.12-intel-2.7/build/temp.macosx-10.12-intel-2.7

cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c build/temp.macosx-10.12-intel-2.7/_openssl.c -o build/temp.macosx-10.12-intel-2.7/build/temp.macosx-10.12-intel-2.7/_openssl.o -Wconversion -Wno-error=sign-conversion

build/temp.macosx-10.12-intel-2.7/_openssl.c:483:10: fatal error: 'openssl/opensslv.h' file not found

#include &lt;openssl/opensslv.h&gt;

         ^~~~~~~~~~~~~~~~~~~~

1 error generated.

error: command 'cc' failed with exit status 1
</code></pre></div>
<h5 dir="auto">ISSUE TYPE</h5>

<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>

<p dir="auto">include_role</p>
<h5 dir="auto">ANSIBLE VERSION</h5>

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.4.0.0
  config file = /usr/local/etc/ansible/ansible.cfg
  configured module search path = Default w/o overrides"><pre class="notranslate"><code class="notranslate">ansible 2.4.0.0
  config file = /usr/local/etc/ansible/ansible.cfg
  configured module search path = Default w/o overrides
</code></pre></div>
<h5 dir="auto">OS / ENVIRONMENT</h5>

<p dir="auto">FreeBSD-11.1-RELEASE</p>
<h5 dir="auto">SUMMARY</h5>

<p dir="auto">Cannot find tasks files from 'include_tasks' statement of included role</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>

<p dir="auto">When I include a role from another role, the include statement of the included role is not able to find the file. For example:</p>
<p dir="auto">Role A includes role B</p>

<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- name: Include other role
  include_role:
    name: roleB"><pre class="notranslate">- <span class="pl-ent">name</span>: <span class="pl-s">Include other role</span>
  <span class="pl-ent">include_role</span>:
    <span class="pl-ent">name</span>: <span class="pl-s">roleB</span></pre></div>
<p dir="auto">and role B is split into multiple task files:</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- name: Install
  include_tasks: install.yml

- name: Configure
  include_tasks: configure.yml"><pre class="notranslate">- <span class="pl-ent">name</span>: <span class="pl-s">Install</span>
  <span class="pl-ent">include_tasks</span>: <span class="pl-s">install.yml</span>

- <span class="pl-ent">name</span>: <span class="pl-s">Configure</span>
  <span class="pl-ent">include_tasks</span>: <span class="pl-s">configure.yml</span></pre></div>
<p dir="auto">When role B is directly used from a play everything works fine, but using it from task A failed with 'file not found errors'.</p>

<h5 dir="auto">ACTUAL RESULTS</h5>


<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TASK [jails : include_tasks] **********************************************************************************************************************************************************************************
fatal: [domain.local]: FAILED! =&gt; {&quot;failed&quot;: true, &quot;reason&quot;: &quot;Unable to retrieve file contents\nCould not find or access '/data/home/ansible/svn/esmg/cfg/unixadm/jails.yaml'&quot;} "><pre class="notranslate"><code class="notranslate">TASK [jails : include_tasks] **********************************************************************************************************************************************************************************
fatal: [domain.local]: FAILED! =&gt; {"failed": true, "reason": "Unable to retrieve file contents\nCould not find or access '/data/home/ansible/svn/esmg/cfg/unixadm/jails.yaml'"} 
</code></pre></div>