mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-27 04:41:26 -07:00
Operate on that play attribute to make things faster for larger inventories. Instead of making a round trip through inventory.list_hosts and working through some lengthy list comprehensions over and over again, calculate the potenital hosts for a play once, then reduce from it the unavailable hosts when necessary. Also moves how the %fail is done. The host count is a play level count of available hosts, which then is compared after each task to the current number of available hosts for the play. This used to get a new count every task which was also time expensive. |
||
---|---|---|
.. | ||
callback_plugins | ||
inventory | ||
module_utils | ||
playbook | ||
runner | ||
utils | ||
__init__.py | ||
callbacks.py | ||
color.py | ||
constants.py | ||
errors.py | ||
module_common.py |