Frank Thommen
unread,Nov 29, 2018, 2:09:53 PM11/29/18Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
Hello,
our latest yum update brought ansible from 2.4.2.0 to 2.7.2 and now we
are facing
[WARNING]: flush_handlers task does not support when conditional
we need the handlers to be flushed at that point, as later tasks rely on
previously reconfigured services to be reloaded. The "when" originates
from our role definition:
----------------------
- hosts: all
name: "====== BLAH ======"
roles:
- { role: blah, when: has_blah|default(False) }
tags:
- blah-only
----------------------
(has_blah is an inventory variable, the hosts which "have blah" are
spread over all our host groups. To organize them in a separate host
group would be too much overhead as this characteristic can change very
often).
I can't find this restriction mentioned anywhere in the changelogs or
the documentation of handlers or "meta" and I wonder
a) why this - IMHO irritating - change of behaviour has been introduced
and
b) what would be the best way to work around it
Any help or hint is appreciated.
frank