1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/lib/ansible/inventory
Tobias Wolf 328b423a0e Solve performance issue with a large number of groups (#13957)
Ansible excessively checks the file system for the potential presence of
`group_vars` and `host_vars` files.

For large numbers of groups this leads to combinatorial performance
issues.

This commit generates a set of group_vars and host_vars filenames using
`os.listdir()` in every possible location and then checks against the sets
before making a stat of the file system.

Also included in this commit is caching of the base directory lookup
for the inventory.
2016-05-27 10:43:11 -04:00
..
vars_plugins
__init__.py Solve performance issue with a large number of groups (#13957) 2016-05-27 10:43:11 -04:00
dir.py skip non executable inventory when no shebang (#15969) 2016-05-24 10:25:10 -04:00
expand_hosts.py
group.py draft add group merge priority and yaml inventory 2016-04-07 16:22:36 -04:00
host.py
ini.py draft add group merge priority and yaml inventory 2016-04-07 16:22:36 -04:00
script.py
yaml.py made format more flexible and allow for non dict entries 2016-05-16 14:39:49 -04:00