Commit b757798f by Brian Coca

Merge pull request #12483 from jeffwidman/patch-2

Clarified that .yml, .yaml, and .json are allowable file extensions for inventory vars files
parents 60e1a1f8 3f135e3f
...@@ -146,7 +146,8 @@ In addition to storing variables directly in the INI file, host ...@@ -146,7 +146,8 @@ In addition to storing variables directly in the INI file, host
and group variables can be stored in individual files relative to the and group variables can be stored in individual files relative to the
inventory file. inventory file.
These variable files are in YAML format. See :doc:`YAMLSyntax` if you are new to YAML. These variable files are in YAML format. Valid file extensions include '.yml', '.yaml', '.json',
or no file extension. See :doc:`YAMLSyntax` if you are new to YAML.
Assuming the inventory file path is:: Assuming the inventory file path is::
...@@ -155,7 +156,7 @@ Assuming the inventory file path is:: ...@@ -155,7 +156,7 @@ Assuming the inventory file path is::
If the host is named 'foosball', and in groups 'raleigh' and 'webservers', variables If the host is named 'foosball', and in groups 'raleigh' and 'webservers', variables
in YAML files at the following locations will be made available to the host:: in YAML files at the following locations will be made available to the host::
/etc/ansible/group_vars/raleigh /etc/ansible/group_vars/raleigh # can optionally end in '.yml', '.yaml', or '.json'
/etc/ansible/group_vars/webservers /etc/ansible/group_vars/webservers
/etc/ansible/host_vars/foosball /etc/ansible/host_vars/foosball
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment