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:
James Cammarata 2016-06-07 11:14:43 -05:00
parent 1eab7e117c
commit b37b51dcea
2 changed files with 9 additions and 10 deletions

View file

@ -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)