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

Update faq.rst #15129

Merged
merged 1 commit into from
Mar 26, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions docsite/rst/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -340,11 +340,11 @@ as this made it hard to distinguish between an undefined variable and a string.

Another rule is 'moustaches don't stack'. We often see this::

{{ somvar_{{other_var}} }}
{{ somevar_{{other_var}} }}

The above DOES NOT WORK, if you need to use a dynamic variable use the hostvars or vars dictionary as appropriate::

{{ hostvars[inventory_hostname]['somevar_' + other_var] }}
{{ hostvars[inventory_hostname]['somevar_' + other_var] }}


.. _i_dont_see_my_question:
Expand Down