From 7d38bb05e41d7c4fe8046625794c6e3eb9b4b52f Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Wed, 16 Jun 2021 11:13:11 -0400 Subject: [PATCH] small note about add_hosts/limit interaction (#74978) clarifying the scope and applicability Co-authored-by: Abhijeet Kasurde Co-authored-by: Sandra McCann --- lib/ansible/modules/add_host.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ansible/modules/add_host.py b/lib/ansible/modules/add_host.py index f48140b8b17..fc4f79fa361 100644 --- a/lib/ansible/modules/add_host.py +++ b/lib/ansible/modules/add_host.py @@ -38,6 +38,8 @@ notes: because you can now have multiple sources. An example was added that shows how to partially restore the previous behaviour. - Windows targets are supported by this module. - Though this module does not change the remote host, we do provide 'changed' status as it can be useful for those trying to track inventory changes. +- The hosts added will not bypass the ``--limit`` from the command line, so both of those need to be in agreement to make them available as play targets. + They are still available from hostvars and for delegation as a normal part of the inventory. seealso: - module: ansible.builtin.group_by author: