Pass number of forks to TQM from CLI/config (#51669)

Fixes #51622
pull/51777/head
Martin Krizek 6 years ago committed by Matt Martz
parent eb6989ecbc
commit 9301c18428

@ -56,8 +56,13 @@ class PlaybookExecutor:
context.CLIARGS.get('listtags') or context.CLIARGS.get('syntax'):
self._tqm = None
else:
self._tqm = TaskQueueManager(inventory=inventory, variable_manager=variable_manager,
loader=loader, passwords=self.passwords)
self._tqm = TaskQueueManager(
inventory=inventory,
variable_manager=variable_manager,
loader=loader,
passwords=self.passwords,
forks=context.CLIARGS.get('forks'),
)
# Note: We run this here to cache whether the default ansible ssh
# executable supports control persist. Sometime in the future we may

Loading…
Cancel
Save