mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 03:41:25 -07:00
added toggle to control vars plugin behviour
this should allow user to control how they want the playbook dirs inspected for additional vars, default now reverts to 2.3 behaviour (top). corrected paths order minor doc reword
This commit is contained in:
parent
adcd185273
commit
7d49b27218
3 changed files with 37 additions and 10 deletions
|
@ -99,7 +99,10 @@ There have been many changes to the implementation of vars plugins, but both use
|
|||
|
||||
The most notable difference to users is that vars plugins now get invoked on demand instead of at inventory build time. This should make them more efficient for large inventories, especially when using a subset of the hosts.
|
||||
|
||||
.. note:: This also creates a difference with group/host_vars when using them adjacent to playbooks. Before, the 'first' playbook loaded determined the variables; now the 'current' playbook does. We are looking to fix this soon, since 'all playbooks' in the path should be considered for variable loading.
|
||||
|
||||
.. note::
|
||||
- This also creates a difference with group/host_vars when using them adjacent to playbooks. Before, the 'first' playbook loaded determined the variables; now the 'current' playbook does. We are looking to fix this soon, since 'all playbooks' in the path should be considered for variable loading.
|
||||
- In 2.4.1 we added a toggle to allow you to control this behaviour, 'top' will be the pre 2.4, 'bottom' will use the current playbook hosting the task and 'all' will use them all from top to bottom.
|
||||
|
||||
|
||||
Inventory plugins
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue