# Why items automaticaly skipped when i use with\_items in "include" module ??

**URL:** <https://forum.ansible.com/t/why-items-automaticaly-skipped-when-i-use-with-items-in-include-module/21559>\
**Category:** Ansible Developer\
**Created:** [May 25, 2016, 9:46am UTC](https://forum.ansible.com/t/why-items-automaticaly-skipped-when-i-use-with-items-in-include-module/21559 "2016-05-25T09:46:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Clement\_VALENTIN](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@Clement\_VALENTIN](https://forum.ansible.com/u/Clement_VALENTIN)\
**Post date:** [May 25, 2016, 9:46am UTC](https://forum.ansible.com/t/why-items-automaticaly-skipped-when-i-use-with-items-in-include-module/21559/1 "2016-05-25T09:46:21Z")

</div>

Hi,

I encounter a bug when i want to use “with\_items” in include file when module “include” already use 'with\_items"…

Exemple :

> _ **tasks/main.yml :** _  
> include: ‘includes/filesystem.yml’  
> vars:  
> project\_config: “{{ item }}”  
> with\_items:
> 
> - “{{ host\_web\_apps\_applications }}”  
> when:
> - “project\_config.host\_web\_apps\_vg\_name is defined”

> **_tasks/includes/filesystem.yml :_**
> 
> - name: “[FILESYSTEM] Check mysql data”  
> stat: path=“{{ apache\_default\_path }}”  
> register: fs\_www
> 
> - debug: msg=“{{ fs\_www }}”  
> with\_items: “{{ fs\_www }}”

> **_Result :_**

> > TASK [web\_apps : [FILESYSTEM] Check mysql data] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
> 
> > ok: [DEBIANVM]
> 
> > 
> 
> > TASK [web\_apps : debug] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
> 
> > skipping: [DEBIANVM] =\> (item=stat)
> 
> > skipping: [DEBIANVM] =\> (item=changed)

Anybody say why debug is skipping in my include file ?? oO  
When i remove when condition in include module, debug work fine…

Thx for your help 🙂
