Try to run with -v option and see if there is any empty variable.


On 25/05/2016 10:44, Clément VALENTIN wrote:
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 : [P300] [OM] [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 :)

--
You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ansible 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to