mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
a bunch of updates to connection info and related, to pass down passwords
also now options populate required fields in required order allowing play to override added capture of debug in action plugins when stdout is not json
This commit is contained in:
@@ -48,7 +48,7 @@ class TaskQueueManager:
|
||||
which dispatches the Play's tasks to hosts.
|
||||
'''
|
||||
|
||||
def __init__(self, inventory, callback, variable_manager, loader, display, options):
|
||||
def __init__(self, inventory, callback, variable_manager, loader, display, options, passwords):
|
||||
|
||||
self._inventory = inventory
|
||||
self._variable_manager = variable_manager
|
||||
@@ -56,6 +56,7 @@ class TaskQueueManager:
|
||||
self._display = display
|
||||
self._options = options
|
||||
self._stats = AggregateStats()
|
||||
self.passwords = passwords
|
||||
|
||||
# a special flag to help us exit cleanly
|
||||
self._terminated = False
|
||||
@@ -144,7 +145,7 @@ class TaskQueueManager:
|
||||
new_play = play.copy()
|
||||
new_play.post_validate(all_vars, fail_on_undefined=False)
|
||||
|
||||
connection_info = ConnectionInformation(new_play, self._options)
|
||||
connection_info = ConnectionInformation(new_play, self._options, self.passwords)
|
||||
for callback_plugin in self._callback_plugins:
|
||||
if hasattr(callback_plugin, 'set_connection_info'):
|
||||
callback_plugin.set_connection_info(connection_info)
|
||||
|
||||
Reference in New Issue
Block a user