mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-22 14:01:42 -07:00
implemented for v2, missing --tree option for adhoc
This commit is contained in:
parent
79a1bca010
commit
4d853a5d3c
3 changed files with 69 additions and 1 deletions
|
@ -139,6 +139,10 @@ class AdHocCLI(CLI):
|
|||
else:
|
||||
cb = 'minimal'
|
||||
|
||||
if self.options.tree:
|
||||
C.DEFAULT_CALLBACK_WHITELIST.append('tree')
|
||||
C.TREE_DIR = self.options.tree
|
||||
|
||||
# now create a task queue manager to execute the play
|
||||
self._tqm = None
|
||||
try:
|
||||
|
@ -168,4 +172,3 @@ class AdHocCLI(CLI):
|
|||
poller.wait(self.options.seconds, self.options.poll_interval)
|
||||
|
||||
return poller.results
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue