summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authoree-github <93349554+ee-github@users.noreply.github.com>2022-03-17 14:57:37 -0400
committerGitHub <noreply@github.com>2022-03-17 14:57:37 -0400
commitc555ce1bd90e95cca0d26259de27399d9bf18da4 (patch)
treed488f0e6ca4ed1796693e9022e1e2f9631e1ae21 /docs
parent94b73d66d53ca0df9911d1dd412bc1d3c9181b1b (diff)
downloadansible-c555ce1bd90e95cca0d26259de27399d9bf18da4.tar.gz
Update intro_patterns.rst (#77300)
Describe difference between targeting a single host using -i vs. --limit. In particular, pointing out the behavior difference that -i will not rad inventory variables.
Diffstat (limited to 'docs')
-rw-r--r--docs/docsite/rst/user_guide/intro_patterns.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/docsite/rst/user_guide/intro_patterns.rst b/docs/docsite/rst/user_guide/intro_patterns.rst
index 7a1f9d581f..e163950184 100644
--- a/docs/docsite/rst/user_guide/intro_patterns.rst
+++ b/docs/docsite/rst/user_guide/intro_patterns.rst
@@ -197,7 +197,7 @@ You can also limit the hosts you target on a particular run with the ``--limit``
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,`` (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:
+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, but this method will NOT read your inventory for variables tied to this host and any variables required by the playbook will need to be specified manually at the command line. You can also limit the hosts you target on a particular run with the ``--limit`` flag, which will reference your inventory:
.. code-block:: bash