mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
Document pattern ranges on the patterns page.
This commit is contained in:
@@ -68,6 +68,14 @@ It's also ok to mix wildcard patterns and groups at the same time::
|
||||
|
||||
one*.com:dbservers
|
||||
|
||||
As an advanced usage, you can also select the numbered server in a group::
|
||||
|
||||
webservers[0]
|
||||
|
||||
Or a portion of servers in a group::
|
||||
|
||||
webservers[0:25]
|
||||
|
||||
Most people don't specify patterns as regular expressions, but you can. Just start the pattern with a '~'::
|
||||
|
||||
~(web|db).*\.example\.com
|
||||
|
||||
Reference in New Issue
Block a user