@ -310,9 +310,7 @@ class CallbackBase(AnsiblePlugin):
host = result . _host . get_name ( )
host = result . _host . get_name ( )
self . runner_on_unreachable ( host , result . _result )
self . runner_on_unreachable ( host , result . _result )
def v2_runner_on_no_hosts ( self , task ) :
# FIXME: not called
self . runner_on_no_hosts ( )
def v2_runner_on_async_poll ( self , result ) :
def v2_runner_on_async_poll ( self , result ) :
host = result . _host . get_name ( )
host = result . _host . get_name ( )
jid = result . _result . get ( ' ansible_job_id ' )
jid = result . _result . get ( ' ansible_job_id ' )
@ -320,19 +318,18 @@ class CallbackBase(AnsiblePlugin):
clock = 0
clock = 0
self . runner_on_async_poll ( host , result . _result , jid , clock )
self . runner_on_async_poll ( host , result . _result , jid , clock )
# FIXME: not called
def v2_runner_on_async_ok ( self , result ) :
def v2_runner_on_async_ok ( self , result ) :
host = result . _host . get_name ( )
host = result . _host . get_name ( )
jid = result . _result . get ( ' ansible_job_id ' )
jid = result . _result . get ( ' ansible_job_id ' )
self . runner_on_async_ok ( host , result . _result , jid )
self . runner_on_async_ok ( host , result . _result , jid )
# FIXME: not called
def v2_runner_on_async_failed ( self , result ) :
def v2_runner_on_async_failed ( self , result ) :
host = result . _host . get_name ( )
host = result . _host . get_name ( )
jid = result . _result . get ( ' ansible_job_id ' )
jid = result . _result . get ( ' ansible_job_id ' )
self . runner_on_async_failed ( host , result . _result , jid )
self . runner_on_async_failed ( host , result . _result , jid )
def v2_runner_on_file_diff ( self , result , diff ) :
pass # no v1 correspondence
def v2_playbook_on_start ( self , playbook ) :
def v2_playbook_on_start ( self , playbook ) :
self . playbook_on_start ( )
self . playbook_on_start ( )
@ -349,6 +346,7 @@ class CallbackBase(AnsiblePlugin):
def v2_playbook_on_task_start ( self , task , is_conditional ) :
def v2_playbook_on_task_start ( self , task , is_conditional ) :
self . playbook_on_task_start ( task . name , is_conditional )
self . playbook_on_task_start ( task . name , is_conditional )
# FIXME: not called
def v2_playbook_on_cleanup_task_start ( self , task ) :
def v2_playbook_on_cleanup_task_start ( self , task ) :
pass # no v1 correspondence
pass # no v1 correspondence
@ -358,13 +356,12 @@ class CallbackBase(AnsiblePlugin):
def v2_playbook_on_vars_prompt ( self , varname , private = True , prompt = None , encrypt = None , confirm = False , salt_size = None , salt = None , default = None ) :
def v2_playbook_on_vars_prompt ( self , varname , private = True , prompt = None , encrypt = None , confirm = False , salt_size = None , salt = None , default = None ) :
self . playbook_on_vars_prompt ( varname , private , prompt , encrypt , confirm , salt_size , salt , default )
self . playbook_on_vars_prompt ( varname , private , prompt , encrypt , confirm , salt_size , salt , default )
def v2_playbook_on_setup ( self ) :
# FIXME: not called
self . playbook_on_setup ( )
def v2_playbook_on_import_for_host ( self , result , imported_file ) :
def v2_playbook_on_import_for_host ( self , result , imported_file ) :
host = result . _host . get_name ( )
host = result . _host . get_name ( )
self . playbook_on_import_for_host ( host , imported_file )
self . playbook_on_import_for_host ( host , imported_file )
# FIXME: not called
def v2_playbook_on_not_import_for_host ( self , result , missing_file ) :
def v2_playbook_on_not_import_for_host ( self , result , missing_file ) :
host = result . _host . get_name ( )
host = result . _host . get_name ( )
self . playbook_on_not_import_for_host ( host , missing_file )
self . playbook_on_not_import_for_host ( host , missing_file )