Please emphasise the distinct lack of "ansible_" prefix used in template syntax on the "Discovering variables" page #1638
Labels
new_contributor
This PR is the first contribution by a new community member.
The "Discovering variables" page suggests to use
setup
module to spell out all host facts:It also illustrates the usage of host facts in an example:
{{ ansible_facts['devices']['xvda']['model'] }}
Notably, the dictionary key omits the
ansible_
prefix, even though the prefix shows up in the setup module output.Please add a clarification on the page to emphasise that the lack of
ansible_
prefix is working as implemented, and that users should avoid repeating theansible_
prefix in template.The text was updated successfully, but these errors were encountered: