mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Update yaml.py example to include A colon for single host in a group (#51830)
* Update yaml.py exmaple to include A colon took me some time to find that out, you can have a single host under a group without the A colon, but if you add another host also w/o A colon, they will be parsed as a single line. * Update yaml.py
This commit is contained in:
parent
705b0476fc
commit
a682a0292d
1 changed files with 8 additions and 1 deletions
|
@ -45,7 +45,14 @@ all: # keys must be unique, i.e. only one 'hosts' per group
|
|||
children:
|
||||
group_x:
|
||||
hosts:
|
||||
test5
|
||||
test5 # Note that one machine will work without a colon
|
||||
#group_x:
|
||||
# hosts:
|
||||
# test5 # But this won't
|
||||
# test7 #
|
||||
group_y:
|
||||
hosts:
|
||||
test6: # So always use a colon
|
||||
vars:
|
||||
g2_var2: value3
|
||||
hosts:
|
||||
|
|
Loading…
Reference in a new issue