# Role does not take in consideration conditional "when" at with\_items

**URL:** <https://forum.ansible.com/t/role-does-not-take-in-consideration-conditional-when-at-with-items/19685>\
**Category:** Ansible Project\
**Created:** [November 3, 2015, 7:16pm UTC](https://forum.ansible.com/t/role-does-not-take-in-consideration-conditional-when-at-with-items/19685 "2015-11-03T19:16:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adrian\_Paraschiv](https://avatars.discourse-cdn.com/v4/letter/a/f14d63/32.png) [@Adrian\_Paraschiv](https://forum.ansible.com/u/Adrian_Paraschiv)\
**Post date:** [November 3, 2015, 7:16pm UTC](https://forum.ansible.com/t/role-does-not-take-in-consideration-conditional-when-at-with-items/19685/1 "2015-11-03T19:16:05Z")

</div>

Hi all,

I have a role with some shell tasks + 2 include: of some yaml files that also contain shell tasks. the first tasks are skipped as per condition but the include: are not  
Here is the small playbook:
