Hi!

I've recently been bitten by this unintuitive behaviour. For example, in
a task like this:

- include: foo.yml
  notify:
    - test handler

the 'test handler' is (silently) not being run.

Even adding 'changed_when: true', i.e. changing the above to:

- include: foo.yml
  changed_when: true
  notify:
    - test handler

doesn't help.

The whole minimal reproducing example is here:
https://github.com/tjanez/ansible-using_notify_with_include_bug

My questions are the following:
1) Is this the expected/intended behaviour?
2) If yes, should we warn the user that using notify with an include
statement will not work?

Thanks and best regards,
Tadej

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/1411568107.3990.11.camel%40tlinux64.
For more options, visit https://groups.google.com/d/optout.

Reply via email to