diff options
author | Brian Coca <bcoca@users.noreply.github.com> | 2018-06-07 20:09:04 -0400 |
---|---|---|
committer | Matt Davis <nitzmahone@users.noreply.github.com> | 2018-06-07 17:09:04 -0700 |
commit | 394753b9184a54db83850636024cff05285cdbd8 (patch) | |
tree | 4a81131807da598230b18f91d42cf537b2de3a13 | |
parent | 79cedcbaa5b13966a1ab6517f76a1b9b18b368a6 (diff) | |
download | ansible-394753b9184a54db83850636024cff05285cdbd8.tar.gz |
Docs fix: ansible_group_priority defaults to 1 (#41204)
The docs committed in #28777 were inconsistent.
This clarifies that the default `ansible_group_priority` is `1`.[1][2]
[1] https://github.com/ansible/ansible/blob/153c9bd/lib/ansible/inventory/group.py#L40
[2] https://github.com/ansible/ansible/blob/153c9bd/lib/ansible/cli/inventory.py#L236
(cherry picked from commit 4fa2fb9c8963f1873fe20f365f43ebaa1e2db613)
-rw-r--r-- | docs/docsite/rst/user_guide/playbooks_variables.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/docsite/rst/user_guide/playbooks_variables.rst b/docs/docsite/rst/user_guide/playbooks_variables.rst index 9879727775..114195fa5e 100644 --- a/docs/docsite/rst/user_guide/playbooks_variables.rst +++ b/docs/docsite/rst/user_guide/playbooks_variables.rst @@ -892,7 +892,7 @@ Basically, anything that goes into "role defaults" (the defaults folder inside t If you define a variable twice in a play's vars: section, the 2nd one wins. .. note:: the previous describes the default config `hash_behavior=replace`, switch to 'merge' to only partially overwrite. .. note:: Group loading follows parent/child relationships. Groups of the same 'patent/child' level are then merged following alphabetical order. - This last one can be superceeded by the user via `ansible_group_priority`, which defaults to 0 for all groups. + This last one can be superceeded by the user via ``ansible_group_priority``, which defaults to ``1`` for all groups. Another important thing to consider (for all versions) is that connection variables override config, command line and play/role/task specific options and directives. For example:: |