From ec3920cef1692d54c08f1932cf0724239628aff1 Mon Sep 17 00:00:00 2001 From: Matt Deacalion Date: Mon, 31 Aug 2020 20:49:18 +0100 Subject: [PATCH] Update intro_patterns.rst (#71542) Call out the trailing comma when specifying a single host. Small snag that took me a while to notice. --- docs/docsite/rst/user_guide/intro_patterns.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docsite/rst/user_guide/intro_patterns.rst b/docs/docsite/rst/user_guide/intro_patterns.rst index 0bb601e88bc..edc25ad607f 100644 --- a/docs/docsite/rst/user_guide/intro_patterns.rst +++ b/docs/docsite/rst/user_guide/intro_patterns.rst @@ -145,7 +145,7 @@ You can specify a pattern as a regular expression by starting the pattern with ` Patterns and ansible-playbook flags ----------------------------------- -You can change the behavior of the patterns defined in playbooks using command-line options. For example, you can run a playbook that defines ``hosts: all`` on a single host by specifying ``-i 127.0.0.2,``. This works even if the host you target is not defined in your inventory. You can also limit the hosts you target on a particular run with the ``--limit`` flag:: +You can change the behavior of the patterns defined in playbooks using command-line options. For example, you can run a playbook that defines ``hosts: all`` on a single host by specifying ``-i 127.0.0.2,`` (note the trailing comma). This works even if the host you target is not defined in your inventory. You can also limit the hosts you target on a particular run with the ``--limit`` flag:: ansible-playbook site.yml --limit datacenter2