mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-28 05:11:25 -07: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:
|
children:
|
||||||
group_x:
|
group_x:
|
||||||
hosts:
|
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:
|
vars:
|
||||||
g2_var2: value3
|
g2_var2: value3
|
||||||
hosts:
|
hosts:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue