1
0
Fork 0
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:
rabin-io 2019-02-07 21:15:40 +02:00 committed by Sandra McCann
parent 705b0476fc
commit a682a0292d

View file

@ -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: