Commit 50495680 by Michael DeHaan

Merge pull request #2033 from lorin/intersect-pattern

Document :& host notation and using variables with hosts
parents aebacdb2 44084a83
...@@ -48,7 +48,7 @@ Adding a lot of hosts? In 0.6 and later, if you have a lot of hosts following s ...@@ -48,7 +48,7 @@ Adding a lot of hosts? In 0.6 and later, if you have a lot of hosts following s
[webservers] [webservers]
www[01:50].example.com www[01:50].example.com
In 1.0 and later, you can also do this for alphabetic ranges:: In 1.0 and later, you can also do this for alphabetic ranges::
...@@ -95,6 +95,18 @@ You can exclude groups as well, for instance, all webservers not in Phoenix:: ...@@ -95,6 +95,18 @@ You can exclude groups as well, for instance, all webservers not in Phoenix::
webservers:!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 Individual host names (or IPs), but not groups, can also be referenced using
wildcards:: wildcards::
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment