mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 11:21:25 -07:00
parent
57adf11262
commit
dcb8caf9e8
2 changed files with 14 additions and 2 deletions
|
@ -62,6 +62,7 @@ class TaskQueueManager:
|
|||
|
||||
self._callbacks_loaded = False
|
||||
self._callback_plugins = []
|
||||
self._start_at_done = False
|
||||
|
||||
# make sure the module path (if specified) is parsed and
|
||||
# added to the module_loader object
|
||||
|
@ -203,8 +204,15 @@ class TaskQueueManager:
|
|||
play_context=play_context,
|
||||
variable_manager=self._variable_manager,
|
||||
all_vars=all_vars,
|
||||
start_at_done = self._start_at_done,
|
||||
)
|
||||
|
||||
# during initialization, the PlayContext will clear the start_at_task
|
||||
# field to signal that a matching task was found, so check that here
|
||||
# and remember it so we don't try to skip tasks on future plays
|
||||
if self._options.start_at_task is not None and play_context.start_at_task is None:
|
||||
self._start_at_done = True
|
||||
|
||||
# and run the play using the strategy
|
||||
return strategy.run(iterator, play_context)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue