mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Document host ranges (new in 0.6)
This commit is contained in:
@@ -33,6 +33,13 @@ after the hostname with a colon.
|
||||
|
||||
four.example.com:5309
|
||||
|
||||
In 0.6 and later, if you have a lot of hosts following similar patterns you can do this::
|
||||
|
||||
[webservers]
|
||||
www[01-50].example.com
|
||||
|
||||
Leading zeros can be included or removed, as desired, and the ranges are inclusive.
|
||||
|
||||
Selecting Targets
|
||||
+++++++++++++++++
|
||||
|
||||
@@ -81,7 +88,6 @@ It's also ok to mix wildcard patterns and groups at the same time::
|
||||
|
||||
one*.com:dbservers
|
||||
|
||||
|
||||
Easy enough. See :doc:`examples` and then :doc:`playbooks` for how to do things to selected hosts.
|
||||
|
||||
Host Variables
|
||||
|
||||
Reference in New Issue
Block a user