Skip to content

Commit

Permalink
Update intro_patterns.rst (#71542)
Browse files Browse the repository at this point in the history
Call out the trailing comma when specifying a single host. Small snag that took me a while to notice.
  • Loading branch information
Matt-Deacalion committed Aug 31, 2020
1 parent bc64614 commit ec3920c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docsite/rst/user_guide/intro_patterns.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ec3920c

Please sign in to comment.