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
Serge van Ginderachter f6a55a3552 Refactor vars_plugins (host/group_vars)
Split out parsing of vars files to per host and per group
parsing, instead of reparsing all groups for each host. This enhances
performance.

Extend vars_plugins' API with two new methods:
* get host variables: only parses host_vars
* get group variables: only parses group_vars for specific group
The initial run method is still used for backward compatibility.

Parse all vars_plugins at inventory initialisation, instead of
per host when touched first by runner. Here we can also loop through
all groups once easily, then parse them.
This also centralizes all parsing in the inventory constructor.

	modified:   bin/ansible
	modified:   bin/ansible-playbook
	modified:   lib/ansible/inventory/__init__.py
	modified:   lib/ansible/inventory/vars_plugins/group_vars.py
2014-03-25 22:12:01 +01:00
..
callback_plugins Update various copyrights. Not complete, but sufficient. 2014-01-04 13:32:04 -05:00
inventory Refactor vars_plugins (host/group_vars) 2014-03-25 22:12:01 +01:00
module_utils Fixes #6655 catch unicode encoding errors before sending to syslog 2014-03-25 16:07:12 -04:00
playbook Ensure handlers run when meta tasks are defined and add handler integration tests 2014-03-25 13:33:52 -04:00
runner Don't run {failed|changed}_when checks until async_status is done 2014-03-25 14:18:47 -05:00
utils Merge pull request #6580 from ramondelafuente/fix-vault-editor-call 2014-03-25 15:48:59 -04:00
__init__.py Bump versions on the devel branch (devel branch version is 1.6) 2014-02-28 18:27:16 -05:00
callbacks.py Micro-optimization: replace s.find(x)!=-1 with x in s 2014-03-16 13:10:28 -04:00
color.py Merge commit. 2014-03-16 17:08:26 -04:00
constants.py Adding in a configurable option for the accelerate daemon timeout 2014-03-23 14:45:49 -05:00
errors.py Update various copyrights. Not complete, but sufficient. 2014-01-04 13:32:04 -05:00
module_common.py Micro-optimization: replace s.find(x)!=-1 with x in s 2014-03-16 13:10:28 -04:00