1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Document :& host notation and using variables with hosts

This commit is contained in:
Lorin Hochstein 2013-02-09 10:47:52 -05:00
parent aebacdb2d7
commit 44084a83a4

View file

@ -48,7 +48,7 @@ Adding a lot of hosts? In 0.6 and later, if you have a lot of hosts following s
[webservers]
www[01:50].example.com
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::
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::