diff options
author | Brian Coca <bcoca@ansible.com> | 2014-11-19 12:05:18 -0500 |
---|---|---|
committer | Brian Coca <bcoca@ansible.com> | 2014-11-19 12:05:18 -0500 |
commit | a897a5ea89dffc343087215b3f3bdc811986a623 (patch) | |
tree | 6e67fd027690cb767238ca892697a76b23200a22 | |
parent | aa1a46092d93e4292402668261cf8512925447f3 (diff) | |
parent | 8d37c6f091579313dc3e44dbe16adc69c2c23056 (diff) | |
download | ansible-a897a5ea89dffc343087215b3f3bdc811986a623.tar.gz |
Merge pull request #9561 from bcoca/variable_precedence_clarification
minor clarifications of variable precedence
-rw-r--r-- | docsite/rst/playbooks_variables.rst | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/docsite/rst/playbooks_variables.rst b/docsite/rst/playbooks_variables.rst index 738148106b..34d5a77be4 100644 --- a/docsite/rst/playbooks_variables.rst +++ b/docsite/rst/playbooks_variables.rst @@ -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:: - * -e variables always win - * then comes "most everything else" - * then comes variables defined in inventory + * extra vars (-e in the command line) always win + * then comes connection variables defined in inventory (ansible_ssh_user, etc) + * 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 "role defaults", which are the most "defaulty" and lose in priority to everything. |