From be00d93eb4e0592527ea705c6c93067ae1e94f3b Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Wed, 22 Nov 2017 17:48:40 -0500 Subject: [PATCH] update with implicit localhost (#33146) * update with implicit localhost * Minor edit --- docs/docsite/rst/porting_guide_2.4.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/docsite/rst/porting_guide_2.4.rst b/docs/docsite/rst/porting_guide_2.4.rst index 67b629be120..d4b1edba03a 100644 --- a/docs/docsite/rst/porting_guide_2.4.rst +++ b/docs/docsite/rst/porting_guide_2.4.rst @@ -31,7 +31,9 @@ This means you can no longer use it early in plays to determine ``hosts:`` or si This also changes the behaviour of ``add_hosts`` and the implicit localhost; because they no longer automatically inherit the global value, they default to ``None``. See the module documentation for more information. -The ``inventory_file`` remains unchanged, as it was always host specific. +The ``inventory_file`` remains mostly unchanged, as it was always host specific. + +Since there is no longer a single inventory, the 'implicit localhost' doesn't get either of these variables defined. A bug was fixed with the inventory path/directory, which was defaulting to the current working directory. This caused ``group_vars`` and ``host_vars`` to be picked up from the current working directory instead of just adjacent to the playbook or inventory directory when a host list (comma separated host names) was provided as inventory.