mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Document pattern ranges on the patterns page.
This commit is contained in:
parent
664fa1e942
commit
c6bfd05c81
1 changed files with 8 additions and 0 deletions
|
@ -68,6 +68,14 @@ It's also ok to mix wildcard patterns and groups at the same time::
|
||||||
|
|
||||||
one*.com:dbservers
|
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 '~'::
|
Most people don't specify patterns as regular expressions, but you can. Just start the pattern with a '~'::
|
||||||
|
|
||||||
~(web|db).*\.example\.com
|
~(web|db).*\.example\.com
|
||||||
|
|
Loading…
Reference in a new issue