ansible.plugins.strategy package¶
- 
class 
ansible.plugins.strategy.StrategyBase(tqm)[source]¶ Bases:
objectThis is the base class for strategy plugins, which contains some common code useful to all strategies like running handlers, cleanup actions, etc.
Submodules¶
ansible.plugins.strategy.debug module¶
- 
class 
ansible.plugins.strategy.debug.NextAction(result=3)[source]¶ Bases:
objectThe next action after an interpreter’s exit.
- 
REDO= 1¶ 
- 
CONTINUE= 2¶ 
- 
EXIT= 3¶ 
- 
 
ansible.plugins.strategy.free module¶
- 
class 
ansible.plugins.strategy.free.StrategyModule(tqm)[source]¶ Bases:
ansible.plugins.strategy.StrategyBase- 
run(iterator, play_context)[source]¶ The “free” strategy is a bit more complex, in that it allows tasks to be sent to hosts as quickly as they can be processed. This means that some hosts may finish very quickly if run tasks result in little or no work being done versus other systems.
The algorithm used here also tries to be more “fair” when iterating through hosts by remembering the last host in the list to be given a task and starting the search from there as opposed to the top of the hosts list again, which would end up favoring hosts near the beginning of the list.
-