mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-01 05:49:09 -07:00
Fix some more handler issues
* Only notify handlers when the task is changed * Don't run handlers on hosts which have failed
This commit is contained in:
parent
2576f480fd
commit
ec4d1b11df
2 changed files with 2 additions and 2 deletions
|
@ -123,7 +123,7 @@ class ResultProcess(multiprocessing.Process):
|
|||
self._send_result(('host_task_skipped', result))
|
||||
else:
|
||||
# if this task is notifying a handler, do it now
|
||||
if result._task.notify:
|
||||
if result._task.notify and result._result.get('changed', False):
|
||||
# The shared dictionary for notified handlers is a proxy, which
|
||||
# does not detect when sub-objects within the proxy are modified.
|
||||
# So, per the docs, we reassign the list so the proxy picks up and
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue