From fb9740db4c07ef326e35c89af0ff7b4665192305 Mon Sep 17 00:00:00 2001 From: Allen <5258565+aveach@users.noreply.github.com> Date: Tue, 16 Jun 2020 09:31:00 -0700 Subject: [PATCH] Specify numeric range can contain a stride (#68952) Updated the range creation example to show that you can also specify a stride value when creating a hostname by numeric range. --- .../docsite/rst/user_guide/intro_inventory.rst | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/docsite/rst/user_guide/intro_inventory.rst b/docs/docsite/rst/user_guide/intro_inventory.rst index b9e587ebc0f..7d4317fc132 100644 --- a/docs/docsite/rst/user_guide/intro_inventory.rst +++ b/docs/docsite/rst/user_guide/intro_inventory.rst @@ -169,6 +169,24 @@ In YAML: webservers: hosts: www[01:50].example.com: + +You can specify a stride (increments between sequence numbers) when defining a numeric range of hosts: + +In INI: + +.. code-block:: text + + [webservers] + www[01:50:2].example.com + +In YAML: + +.. code-block:: yaml + + ... + webservers: + hosts: + www[01:50:2].example.com: For numeric patterns, leading zeros can be included or removed, as desired. Ranges are inclusive. You can also define alphabetic ranges: