cause you asked it to?
I think you want:
when: bar is defined
cause you asked it to?
I think you want:
when: bar is defined
Sorry, I made mistake. Bad example. I meant this one:
`
$ cat inv
local ansible_connection=local
$ cat extra.yml
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.
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ł:
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.
That’s a bummer. Thank You a lot.
W dniu wtorek, 11 listopada 2014 18:01:18 UTC+1 użytkownik Michael Peters napisał:
No, still skipping. But I got the answer. Check the forum https://groups.google.com/forum/?#!topic/ansible-project/BBbdxspBzHI