mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-04 16:21:28 -07:00
add option to display per host start to default (#53819)
* add option to display per host start to default
This commit is contained in:
parent
5eb3117822
commit
9f87552f06
4 changed files with 18 additions and 1 deletions
|
@ -227,6 +227,10 @@ class CallbackModule(CallbackBase):
|
|||
def v2_playbook_on_handler_task_start(self, task):
|
||||
self._task_start(task, prefix='RUNNING HANDLER')
|
||||
|
||||
def v2_runner_on_start(self, host, task):
|
||||
if self.get_option('show_per_host_start'):
|
||||
self._display.display(" [started %s on %s]" % (task, host), color=C.COLOR_OK)
|
||||
|
||||
def v2_playbook_on_play_start(self, play):
|
||||
name = play.get_name().strip()
|
||||
if not name:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue