Why items automaticaly skipped when i use with_items in "include" module ??

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 :slight_smile: