<p dir="auto">Issue Type:<br>
Bug Report</p>
<p dir="auto">Ansible Version:<br>
ansible --version<br>
ansible 2.0.0</p>
<p dir="auto">Environment:<br>
Ubuntu 15.04</p>
<p dir="auto">Summary:<br>
I have a role with tasks/main.yml like this:</p>
<ul dir="auto">
<li>include: packages.yml</li>
<li>include: config-cluster.yml</li>
<li>include: config.yml</li>
<li>include: service.yml</li>
<li>include: cluster.yml</li>
<li>include: rabbitmq.yml</li>
<li>include: queues.yml<br>
tags: queues</li>
<li>meta: flush_handlers</li>
</ul>
<p dir="auto">When I use this role from my playbook only first include is executed.</p>
<ul dir="auto">
<li>hosts: serverdev<br>
user: root<br>
roles:
<ul dir="auto">
<li>role.rabbitmq</li>
</ul>
</li>
</ul>
<p dir="auto">Expected Results:</p>
<p dir="auto">Run all includes</p>
<p dir="auto">Actual Results:<br>
This is the output of command "ansible-playbook serverdev.yml":<br>
PLAY ***************************************************************************</p>
<p dir="auto">TASK [setup] *******************************************************************<br>
ok: [trr-rabbit-dev2]<br>
ok: [trr-rabbit-dev1]</p>
<p dir="auto">TASK [tierra.rabbitmq : include] ***********************************************<br>
included: packages.yml for trr-rabbit-dev1<br>
included: packages.yml for trr-rabbit-dev2</p>
<p dir="auto">TASK [tierra.rabbitmq : Ensure Epel is installed] ******************************<br>
ok: [trr-rabbit-dev2]<br>
ok: [trr-rabbit-dev1]</p>
<p dir="auto">TASK [tierra.rabbitmq : Ensure Erlang repo is installed] ***********************<br>
ok: [trr-rabbit-dev2]<br>
ok: [trr-rabbit-dev1]</p>
<p dir="auto">TASK [tierra.rabbitmq : Ensure RabbitMQ RPM key is present] ********************<br>
ok: [trr-rabbit-dev2]<br>
ok: [trr-rabbit-dev1]</p>
<p dir="auto">TASK [tierra.rabbitmq : Ensure RabbitMQ is installed] **************************<br>
ok: [trr-rabbit-dev2]<br>
ok: [trr-rabbit-dev1]</p>
<p dir="auto">PLAY RECAP *********************************************************************<br>
trr-rabbit-dev1            : ok=6    changed=0    unreachable=0    failed=0<br>
trr-rabbit-dev2            : ok=6    changed=0    unreachable=0    failed=0</p>
<p dir="auto">There is no reason with_items can't use inventory scoped variables anymore.</p>
<p dir="auto">It used to generate tasks per object but this is not the case, so it looks like it just needs to template variables using some better context.</p>
<p dir="auto">Example:</p>
<p dir="auto">with_items: $foos</p>
<p dir="auto">where $foos is defined in groupvars/webservers</p>