implemented for v2, missing --tree option for adhoc

This commit is contained in:
Brian Coca 2015-08-11 19:18:10 -04:00
commit 4d853a5d3c
3 changed files with 69 additions and 1 deletions

View file

@ -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