I would like to notify a handler in my role by doing something like this:
- name: Notify handler
notify: my_handler
when: this_thing_is_true|bool
But Ansible just whines:
ERROR! no module/action detected in task.
I have tried various wedges, such as:
- name: Notify handler
meta: noop
notify: my_handler
when: this_thing_is_true|bool
But that similarly whines:
[WARNING]: noop task does not support when conditional
Any suggestions?