mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #2033 from lorin/intersect-pattern
Document :& host notation and using variables with hosts
This commit is contained in:
commit
50495680d5
1 changed files with 13 additions and 1 deletions
|
@ -95,6 +95,18 @@ You can exclude groups as well, for instance, all webservers not in Phoenix::
|
|||
|
||||
webservers:!phoenix
|
||||
|
||||
You can also specify the intersection of two groups::
|
||||
|
||||
webservers:&staging
|
||||
|
||||
You can do combinations::
|
||||
|
||||
webservers:dbservers:!phoenix:&staging
|
||||
|
||||
You can also use variables::
|
||||
|
||||
webservers:!$excluded:&$required
|
||||
|
||||
Individual host names (or IPs), but not groups, can also be referenced using
|
||||
wildcards::
|
||||
|
||||
|
|
Loading…
Reference in a new issue