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:
parent
3f17a39238
commit
d1de7839d7
3 changed files with 14 additions and 2 deletions
|
@ -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):
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue