mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-22 14:01:42 -07:00
allow custom callbacks with adhoc cli for scripting
missing import of CallbackBase
This commit is contained in:
parent
30e729557f
commit
6680cc7052
3 changed files with 14 additions and 4 deletions
|
@ -158,7 +158,9 @@ class AdHocCLI(CLI):
|
|||
play_ds = self._play_ds(pattern, self.options.seconds, self.options.poll_interval)
|
||||
play = Play().load(play_ds, variable_manager=variable_manager, loader=loader)
|
||||
|
||||
if self.options.one_line:
|
||||
if self.callback:
|
||||
cb = self.callback
|
||||
elif self.options.one_line:
|
||||
cb = 'oneline'
|
||||
else:
|
||||
cb = 'minimal'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue