mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-05 13:44:24 -07:00
Document regex patterns.
This commit is contained in:
parent
099e7b39a9
commit
0fd3af8c3c
1 changed files with 4 additions and 1 deletions
|
@ -121,7 +121,7 @@ You can do combinations::
|
||||||
|
|
||||||
You can also use variables::
|
You can also use variables::
|
||||||
|
|
||||||
webservers:!$excluded:&$required
|
webservers:!{{excluded}}:&{{required}}
|
||||||
|
|
||||||
Individual host names, IPs and groups, can also be referenced using
|
Individual host names, IPs and groups, can also be referenced using
|
||||||
wildcards::
|
wildcards::
|
||||||
|
@ -133,6 +133,9 @@ It's also ok to mix wildcard patterns and groups at the same time::
|
||||||
|
|
||||||
one*.com:dbservers
|
one*.com:dbservers
|
||||||
|
|
||||||
|
And if the pattern starts with a '~' it is treated as a regular expression::
|
||||||
|
|
||||||
|
~(web|db).*\.example\.com
|
||||||
|
|
||||||
Easy enough. See :doc:`examples` and then :doc:`playbooks` for how to do things to selected hosts.
|
Easy enough. See :doc:`examples` and then :doc:`playbooks` for how to do things to selected hosts.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue