mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Update structure to include file extensions (#36967)
* Update structure to include file extensions It is not clear to novice users that the host/group_vars files should be yaml files. This highlights that IMHO a bit more clearer. * pluralize
This commit is contained in:
parent
ca4147f2cc
commit
ad1a7d90ff
1 changed files with 12 additions and 12 deletions
|
@ -32,11 +32,11 @@ The top level of the directory would contain files and directories like so::
|
|||
staging # inventory file for staging environment
|
||||
|
||||
group_vars/
|
||||
group1 # here we assign variables to particular groups
|
||||
group2 # ""
|
||||
group1.yml # here we assign variables to particular groups
|
||||
group2.yml
|
||||
host_vars/
|
||||
hostname1 # if systems need specific variables, put them here
|
||||
hostname2 # ""
|
||||
hostname1.yml # here we assign variables to particular systems
|
||||
hostname2.yml
|
||||
|
||||
library/ # if any custom modules, put them here (optional)
|
||||
module_utils/ # if any custom module_utils to support modules, put them here (optional)
|
||||
|
@ -84,20 +84,20 @@ Alternatively you can put each inventory file with its ``group_vars``/``host_var
|
|||
production/
|
||||
hosts # inventory file for production servers
|
||||
group_vars/
|
||||
group1 # here we assign variables to particular groups
|
||||
group2 # ""
|
||||
group1.yml # here we assign variables to particular groups
|
||||
group2.yml
|
||||
host_vars/
|
||||
hostname1 # if systems need specific variables, put them here
|
||||
hostname2 # ""
|
||||
hostname1.yml # here we assign variables to particular systems
|
||||
hostname2.yml
|
||||
|
||||
staging/
|
||||
hosts # inventory file for staging environment
|
||||
group_vars/
|
||||
group1 # here we assign variables to particular groups
|
||||
group2 # ""
|
||||
group1.yml # here we assign variables to particular groups
|
||||
group2.yml
|
||||
host_vars/
|
||||
stagehost1 # if systems need specific variables, put them here
|
||||
stagehost2 # ""
|
||||
stagehost1.yml # here we assign variables to particular systems
|
||||
stagehost2.yml
|
||||
|
||||
library/
|
||||
module_utils/
|
||||
|
|
Loading…
Reference in a new issue