diff options
author | Jack Scheible <jscheibl@redhat.com> | 2020-05-28 22:06:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-28 22:06:17 +0200 |
commit | 0ce404c4d9e410e4d141a73ddaa36ae58fc3e035 (patch) | |
tree | f9cfe99167f0c56e3b1c660ce7b734bebce90a26 /docs/docsite | |
parent | Doc: playbook keywords are reserved names too (#69585) (diff) | |
download | ansible-0ce404c4d9e410e4d141a73ddaa36ae58fc3e035.tar.xz ansible-0ce404c4d9e410e4d141a73ddaa36ae58fc3e035.zip |
Update intro_inventory.rst (#69718)
Vars in inventory are merged in ASCII order. Change docs to reflect that.
Diffstat (limited to 'docs/docsite')
-rw-r--r-- | docs/docsite/rst/user_guide/intro_inventory.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/docsite/rst/user_guide/intro_inventory.rst b/docs/docsite/rst/user_guide/intro_inventory.rst index d0d35f8f9e..b9e587ebc0 100644 --- a/docs/docsite/rst/user_guide/intro_inventory.rst +++ b/docs/docsite/rst/user_guide/intro_inventory.rst @@ -422,7 +422,7 @@ By default variables are merged/flattened to the specific host before a play is - child group - host -By default Ansible merges groups at the same parent/child level alphabetically, and the last group loaded overwrites the previous groups. For example, an a_group will be merged with b_group and b_group vars that match will overwrite the ones in a_group. +By default Ansible merges groups at the same parent/child level in ASCII order, and the last group loaded overwrites the previous groups. For example, an a_group will be merged with b_group and b_group vars that match will overwrite the ones in a_group. You can change this behavior by setting the group variable ``ansible_group_priority`` to change the merge order for groups of the same level (after the parent/child order is resolved). The larger the number, the later it will be merged, giving it higher priority. This variable defaults to ``1`` if not set. For example: @@ -485,7 +485,7 @@ You can target this inventory directory simply like this: It can be useful to control the merging order of the inventory sources if there's variable conflicts or group of groups dependencies to the other inventory sources. The inventories -are merged in alphabetical order according to the filenames so the result can +are merged in ASCII order according to the filenames so the result can be controlled by adding prefixes to the files: .. code-block:: text |