Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add implicit localhost hostvars note #61956

Open
wants to merge 1 commit into
base: devel
from

Conversation

@s-hertel
Copy link
Contributor

commented Sep 6, 2019

SUMMARY

Document that implicit localhost is not provided in hostvars unless requested.
hostvars is populated with the real hosts in inventory and implicit localhost is retrievable on-demand.

Fixes #61513

ISSUE TYPE
  • Docs Pull Request
COMPONENT NAME

docs/docsite/rst/inventory/implicit_localhost.rst

@ansibot

This comment has been minimized.

Copy link
Contributor

commented Sep 6, 2019

@bcoca
bcoca approved these changes Sep 10, 2019

@ansibot ansibot removed the needs_triage label Sep 10, 2019

@@ -28,6 +28,7 @@ You can override the built-in implicit version by creating a ``localhost`` host

.. note::
- This host is not targetable via any group, however it will use vars from ``host_vars`` and from the 'all' group.
- Implicit localhost does not appear in the ``hostvars`` magic variable unless demanded, such as via ``"{{ hostvars['localhost'] }}"``.

This comment has been minimized.

Copy link
@samccann

samccann Sep 11, 2019

Contributor
Suggested change
- Implicit localhost does not appear in the ``hostvars`` magic variable unless demanded, such as via ``"{{ hostvars['localhost'] }}"``.
- Implicit localhost does not appear in the ``hostvars`` magic variable unless demanded, such as by ``"{{ hostvars['localhost'] }}"``.

This comment has been minimized.

Copy link
@samccann

samccann Sep 11, 2019

Contributor

we're avoiding Latin in the docs these days :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.