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
pull/51896/head
rabin-io 6 years ago committed by Sandra McCann
parent 705b0476fc
commit a682a0292d

@ -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…
Cancel
Save