Adding a when condition to an include doesn't conditionally include
the file, it instead adds that condition to every task in that file.
So in this case yes, the debug does have the when statement.

On Tue, Nov 11, 2014 at 11:53 AM, cdar z <cda...@gmail.com> wrote:
> But debug doesn't have when statement. If set_fact was runned, debug should
> too.
>
> W dniu wtorek, 11 listopada 2014 17:44:09 UTC+1 użytkownik Brian Coca
> napisał:
>>
>> still works as expected.
>>
>> set fact runs when bar is not defined, debug is skipped on the same
>> condition as it isn't true once set fact sets bar.
>>
>> --
>> Brian Coca
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ansible-project+unsubscr...@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/b6ea8af7-02c5-4f3a-a100-82da2f422946%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAJQqANfHV6n9aVrqCKc3YJr-rOKHr27-DzfNSg57fv-R%3DDkK8Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to