diff --git a/docs/docsite/rst/inventory_guide/intro_patterns.rst b/docs/docsite/rst/inventory_guide/intro_patterns.rst index 9aa59278d7..0e957dbd88 100644 --- a/docs/docsite/rst/inventory_guide/intro_patterns.rst +++ b/docs/docsite/rst/inventory_guide/intro_patterns.rst @@ -229,12 +229,24 @@ You can also limit the hosts you target on a particular run with the ``--limit`` $ ansible all -m -a "" --limit "host1" +* One host with pattern + +.. code-block:: bash + + $ ansible -m -a "" + * Limit to multiple hosts .. code-block:: bash $ ansible all -m -a "" --limit "host1,host2" +* Multiple hosts with pattern + +.. code-block:: bash + + $ ansible -m -a "" + * Negated limit. Note that single quotes MUST be used to prevent bash interpolation. .. code-block:: bash