mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
clarify the slicing example (#36842)
As stated by fellow contributors, update the slicing example Resolves: Related: #36625 Signed-off-by: Daniel Andrei Minca <mandrei17@gmail.com>
This commit is contained in:
parent
365220bea5
commit
8362ddd107
1 changed files with 2 additions and 2 deletions
|
@ -81,8 +81,8 @@ You can refer to hosts within the group by adding a subscript to the group name:
|
|||
|
||||
webservers[0] # == cobweb
|
||||
webservers[-1] # == weber
|
||||
webservers[0:1] # == webservers[0]
|
||||
# == cobweb
|
||||
webservers[0:2] # == webservers[0],webservers[1]
|
||||
# == cobweb,webbing
|
||||
webservers[1:] # == webbing,weber
|
||||
webservers[:3] # == cobweb,webbing,weber
|
||||
|
||||
|
|
Loading…
Reference in a new issue