-
Bug
-
Resolution: Done
-
Minor
-
RH294 - RHEL9.0-en-4-20241107
-
None
-
False
-
-
False
-
-
-
en-US (English)
-
AU294v2.5 Sprint 1
Please fill in the following information:
URL: | https://role.rhu.redhat.com/rol-rhu/app/courses/rh294-9.0/pages/ch03 |
Reporter RHNID: | shasingh01 |
Section Title: | Managing Variables |
Issue description
Improvement:
==============
Section: Using Directories to Populate Host and Group Variables
"To define group variables for the servers group, you would create a YAML file named group_vars/servers"
While it works to drop the ".yml" extension, Ansible supports it and it is best practice to use it. It would be clearer to show using the standard YAML file extension, "group_vars/servers.yml" and similarly in following content.
Likewise the ".yml" extension is supported for host_vars, ex "host_vars/demo1.example.com.yml"
Steps to reproduce:
Workaround:
Expected result: