mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 20:31:27 -07:00
Fix variable precedence issue where set facts beat role params
Also updates doc on variable precedence, as it was incorrect for the order of play vars/vars_prompt/vars_files in relation to set_fact and registered variables. Fixes #14702 Fixes #14826
This commit is contained in:
parent
1eab7e117c
commit
b37b51dcea
2 changed files with 9 additions and 10 deletions
|
@ -803,11 +803,11 @@ In 2.x, we have made the order of precedence more specific (with the last listed
|
|||
* playbook group_vars
|
||||
* playbook host_vars
|
||||
* host facts
|
||||
* registered vars
|
||||
* set_facts
|
||||
* play vars
|
||||
* play vars_prompt
|
||||
* play vars_files
|
||||
* registered vars
|
||||
* set_facts
|
||||
* role and include vars
|
||||
* block vars (only for tasks in block)
|
||||
* task vars (only for the task)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue