add extra var stuff for custom cred test
This commit is contained in:
parent
f0df13fa0e
commit
9fdf95568a
@ -18,9 +18,14 @@ class CallbackModule(CallbackBase):
|
|||||||
|
|
||||||
|
|
||||||
def v2_playbook_on_start(self, playbook):
|
def v2_playbook_on_start(self, playbook):
|
||||||
|
self._display.display(self.CALLBACK_NAME, color=C.COLOR_OK)
|
||||||
self._display.display("Custom commands for <v2_playbook_on_start> go here", color=C.COLOR_OK)
|
self._display.display("Custom commands for <v2_playbook_on_start> go here", color=C.COLOR_OK)
|
||||||
|
|
||||||
|
gvm = playbook.get_variable_manager()
|
||||||
|
extra_vars = gvm.extra_vars
|
||||||
|
self.job_status_url = extra_vars['target_endpoint']
|
||||||
|
|
||||||
|
|
||||||
def v2_playbook_on_task_start(self, task, is_conditional):
|
def v2_playbook_on_task_start(self, task, is_conditional):
|
||||||
self._display.display("Custom commands for <v2_playbook_on_task_start> go here", color=C.COLOR_OK)
|
self._display.display("Custom commands for <v2_playbook_on_task_start> go here", color=C.COLOR_OK)
|
||||||
|
self._display.display(self.job_status_url, color=C.COLOR_OK)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user