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 Add python3-compat boilerplate to all .py files in lib/ansible 2015-10-19 18:36:19 -07:00
__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 Be systematic about parsing and validating hostnames and addresses 2015-09-11 21:47:18 +05:30
group.py draft add group merge priority and yaml inventory 2016-04-07 16:22:36 -04:00
host.py Revert "Enable host_key checking at the strategy level" 2015-12-17 12:43:47 -05:00
ini.py draft add group merge priority and yaml inventory 2016-04-07 16:22:36 -04:00
script.py better error when host inventory script isnt dict 2016-01-25 16:32:09 -05:00
yaml.py made format more flexible and allow for non dict entries 2016-05-16 14:39:49 -04:00