Merge pull request #9561 from bcoca/variable_precedence_clarification
minor clarifications of variable precedence
This commit is contained in:
commit
a897a5ea89
1 changed files with 4 additions and 3 deletions
|
@ -955,9 +955,10 @@ a use for it.
|
||||||
|
|
||||||
If multiple variables of the same name are defined in different places, they win in a certain order, which is::
|
If multiple variables of the same name are defined in different places, they win in a certain order, which is::
|
||||||
|
|
||||||
* -e variables always win
|
* extra vars (-e in the command line) always win
|
||||||
* then comes "most everything else"
|
* then comes connection variables defined in inventory (ansible_ssh_user, etc)
|
||||||
* then comes variables defined in inventory
|
* then comes "most everything else" (command line switches, vars in play, included vars, etc)
|
||||||
|
* then comes the rest of the variables defined in inventory
|
||||||
* then comes facts discovered about a system
|
* then comes facts discovered about a system
|
||||||
* then "role defaults", which are the most "defaulty" and lose in priority to everything.
|
* then "role defaults", which are the most "defaulty" and lose in priority to everything.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue