mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-06 02:33:09 +00: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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user