Renamed on_no_hosts_matched/on_no_hosts_remaining to correct names in noop callback, added methods to callback plugin examples.

This commit is contained in:
Chris Church 2013-06-09 12:19:07 -04:00
parent 3f17a39238
commit d1de7839d7
3 changed files with 14 additions and 2 deletions

View file

@ -63,10 +63,10 @@ class CallbackModule(object):
def playbook_on_notify(self, host, handler):
pass
def on_no_hosts_matched(self):
def playbook_on_no_hosts_matched(self):
pass
def on_no_hosts_remaining(self):
def playbook_on_no_hosts_remaining(self):
pass
def playbook_on_task_start(self, name, is_conditional):

View file

@ -90,6 +90,12 @@ class CallbackModule(object):
def playbook_on_notify(self, host, handler):
pass
def playbook_on_no_hosts_matched(self):
pass
def playbook_on_no_hosts_remaining(self):
pass
def playbook_on_task_start(self, name, is_conditional):
pass

View file

@ -67,6 +67,12 @@ class CallbackModule(object):
def playbook_on_notify(self, host, handler):
say("pew", LASER_VOICE)
def playbook_on_no_hosts_matched(self):
pass
def playbook_on_no_hosts_remaining(self):
pass
def playbook_on_task_start(self, name, is_conditional):
if not is_conditional:
say("Starting task: %s" % name, REGULAR_VOICE)