<p dir="auto">I have successfully installed Ansible 1.8.1 and 1.9 without difficulty.  When I attempt to install Ansible 2.0 on linux, I get the following:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="lrmk225:~/shared-webstorage/storage/hdfssvc/playbooks/build # ansible-galaxy install -r requirements.txt -f
ERROR! Could not open readme: [Errno 2] No such file or directory: '/usr/local/lib64/python2.6/site-packages/ansible-2.0.0-py2.6.egg/ansible/galaxy/data/readme'"><pre class="notranslate"><code class="notranslate">lrmk225:~/shared-webstorage/storage/hdfssvc/playbooks/build # ansible-galaxy install -r requirements.txt -f
ERROR! Could not open readme: [Errno 2] No such file or directory: '/usr/local/lib64/python2.6/site-packages/ansible-2.0.0-py2.6.egg/ansible/galaxy/data/readme'
</code></pre></div>
<p dir="auto">I tried creating an empty readme in this location, but that just shifts the error to:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="lrmk225:~/shared-webstorage/storage/hdfssvc/playbooks/build # ansible-galaxy install -r requirements.txt -f
ERROR! Could not open metadata_template.j2: [Errno 2] No such file or directory: '/usr/local/lib64/python2.6/site-packages/ansible-2.0.0-py2.6.egg/ansible/galaxy/data/metadata_template.j2'"><pre class="notranslate"><code class="notranslate">lrmk225:~/shared-webstorage/storage/hdfssvc/playbooks/build # ansible-galaxy install -r requirements.txt -f
ERROR! Could not open metadata_template.j2: [Errno 2] No such file or directory: '/usr/local/lib64/python2.6/site-packages/ansible-2.0.0-py2.6.egg/ansible/galaxy/data/metadata_template.j2'
</code></pre></div>
<p dir="auto">Is this a known issue?    This was reported to me by another individual in my organization, and I duplicated it on a different system.</p>
<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="  config file = /etc/ansible/ansible.cfg
  configured module search path = Default w/o overrides
  python version = 2.7.14 (default, Sep 23 2017, 22:06:14) [GCC 7.2.0]"><pre lang="ansible" class="notranslate"><code class="notranslate">  config file = /etc/ansible/ansible.cfg
  configured module search path = Default w/o overrides
  python version = 2.7.14 (default, Sep 23 2017, 22:06:14) [GCC 7.2.0]
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<p dir="auto">forks=16 (the rest is unchanged)</p>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">Ubuntu 17.10</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">When role is included inside role with with_items loop it uses variables from one host as variables for other host. (See example below).</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<p dir="auto">cat inventory:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[all]
host1 ansible_connection=local
host2 ansible_connection=local"><pre class="notranslate"><code class="notranslate">[all]
host1 ansible_connection=local
host2 ansible_connection=local
</code></pre></div>
<p dir="auto">cat host_vars/host1.yaml</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="---
foo_list:
 - host1_only
 - host1_only_n2"><pre class="notranslate"><code class="notranslate">---
foo_list:
 - host1_only
 - host1_only_n2
</code></pre></div>
<p dir="auto">cat host_vars/host2.yaml</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="---
foo_list:
  - host2_only
  - host2_only_n2"><pre class="notranslate"><code class="notranslate">---
foo_list:
  - host2_only
  - host2_only_n2
</code></pre></div>
<p dir="auto">cat all.yaml</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="---
- hosts: all
  gather_facts: no
  roles:
   - role1"><pre class="notranslate"><code class="notranslate">---
- hosts: all
  gather_facts: no
  roles:
   - role1
</code></pre></div>
<p dir="auto">cat roles/role1/tasks/main.yml</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="---
# tasks file for role1
- name: Test
  include_role:
    name: role2
  vars:
    foo: &quot;{{item}}&quot;
  with_items: '{{foo_list}}'"><pre class="notranslate"><code class="notranslate">---
# tasks file for role1
- name: Test
  include_role:
    name: role2
  vars:
    foo: "{{item}}"
  with_items: '{{foo_list}}'
</code></pre></div>
<p dir="auto">cat roles/role2/tasks/main.yml</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="---
# tasks file for role2
 - debug: msg=&quot;{{foo}}&quot;"><pre class="notranslate"><code class="notranslate">---
# tasks file for role2
 - debug: msg="{{foo}}"
</code></pre></div>
<h5 dir="auto">EXPECTED RESULTS</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PLAY [all] *******************************************************************************************************************************************************************************************************************************************************************************

TASK [role1 : Test] **********************************************************************************************************************************************************************************************************************************************************************

TASK [role2 : debug] *********************************************************************************************************************************************************************************************************************************************************************
ok: [host1] =&gt; {
    &quot;msg&quot;: &quot;host1_only&quot;
}
ok: [host1] =&gt; {
    &quot;msg&quot;: &quot;host1_only_n2&quot;
}

TASK [role2 : debug] *********************************************************************************************************************************************************************************************************************************************************************
ok: [host2] =&gt; {
    &quot;msg&quot;: &quot;host2_only&quot;
}
ok: [host2] =&gt; {
    &quot;msg&quot;: &quot;host2_only_n2&quot;
}"><pre class="notranslate"><code class="notranslate">PLAY [all] *******************************************************************************************************************************************************************************************************************************************************************************

TASK [role1 : Test] **********************************************************************************************************************************************************************************************************************************************************************

TASK [role2 : debug] *********************************************************************************************************************************************************************************************************************************************************************
ok: [host1] =&gt; {
    "msg": "host1_only"
}
ok: [host1] =&gt; {
    "msg": "host1_only_n2"
}

TASK [role2 : debug] *********************************************************************************************************************************************************************************************************************************************************************
ok: [host2] =&gt; {
    "msg": "host2_only"
}
ok: [host2] =&gt; {
    "msg": "host2_only_n2"
}
</code></pre></div>
<h5 dir="auto">ACTUAL RESULTS</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PLAY [all] *******************************************************************************************************************************************************************************************************************************************************************************

TASK [role1 : Test] **********************************************************************************************************************************************************************************************************************************************************************

TASK [role2 : debug] *********************************************************************************************************************************************************************************************************************************************************************
ok: [host1] =&gt; {
    &quot;msg&quot;: &quot;host1_only&quot;
}
ok: [host2] =&gt; {
    &quot;msg&quot;: &quot;host1_only&quot;
}

TASK [role2 : debug] *********************************************************************************************************************************************************************************************************************************************************************
ok: [host1] =&gt; {
    &quot;msg&quot;: &quot;host1_only_n2&quot;
}
ok: [host2] =&gt; {
    &quot;msg&quot;: &quot;host1_only_n2&quot;
}

TASK [role2 : debug] *********************************************************************************************************************************************************************************************************************************************************************
ok: [host1] =&gt; {
    &quot;msg&quot;: &quot;host2_only&quot;
}
ok: [host2] =&gt; {
    &quot;msg&quot;: &quot;host2_only&quot;
}

TASK [role2 : debug] *********************************************************************************************************************************************************************************************************************************************************************
ok: [host1] =&gt; {
    &quot;msg&quot;: &quot;host2_only_n2&quot;
}
ok: [host2] =&gt; {
    &quot;msg&quot;: &quot;host2_only_n2&quot;
}
"><pre class="notranslate"><code class="notranslate">PLAY [all] *******************************************************************************************************************************************************************************************************************************************************************************

TASK [role1 : Test] **********************************************************************************************************************************************************************************************************************************************************************

TASK [role2 : debug] *********************************************************************************************************************************************************************************************************************************************************************
ok: [host1] =&gt; {
    "msg": "host1_only"
}
ok: [host2] =&gt; {
    "msg": "host1_only"
}

TASK [role2 : debug] *********************************************************************************************************************************************************************************************************************************************************************
ok: [host1] =&gt; {
    "msg": "host1_only_n2"
}
ok: [host2] =&gt; {
    "msg": "host1_only_n2"
}

TASK [role2 : debug] *********************************************************************************************************************************************************************************************************************************************************************
ok: [host1] =&gt; {
    "msg": "host2_only"
}
ok: [host2] =&gt; {
    "msg": "host2_only"
}

TASK [role2 : debug] *********************************************************************************************************************************************************************************************************************************************************************
ok: [host1] =&gt; {
    "msg": "host2_only_n2"
}
ok: [host2] =&gt; {
    "msg": "host2_only_n2"
}

</code></pre></div>
<h4 dir="auto">Conclusion</h4>
<p dir="auto">host2 uses variables of host1, and host1 uses variables for host2. This causes madness.</p>