diff options
Diffstat (limited to 'lib/ansible/playbook/handler.py')
-rw-r--r-- | lib/ansible/playbook/handler.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/ansible/playbook/handler.py b/lib/ansible/playbook/handler.py index 68970b4..2f28398 100644 --- a/lib/ansible/playbook/handler.py +++ b/lib/ansible/playbook/handler.py @@ -53,6 +53,9 @@ class Handler(Task): def remove_host(self, host): self.notified_hosts = [h for h in self.notified_hosts if h != host] + def clear_hosts(self): + self.notified_hosts = [] + def is_host_notified(self, host): return host in self.notified_hosts |