mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-10 11:11:29 -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
|
@ -380,7 +380,7 @@ class StrategyBase:
|
|||
break
|
||||
self._tqm.send_callback('v2_playbook_on_handler_task_start', handler)
|
||||
for host in self._notified_handlers[handler_name]:
|
||||
if not handler.has_triggered(host):
|
||||
if not handler.has_triggered(host) and host.name not in self._tqm._failed_hosts:
|
||||
task_vars = self._variable_manager.get_vars(loader=self._loader, play=iterator._play, host=host, task=handler)
|
||||
task_vars = self.add_tqm_variables(task_vars, play=iterator._play)
|
||||
self._queue_task(host, handler, task_vars, connection_info)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue