When I do a dump of hostvars I get a different result than when I dump 
hostvars[hostname].  Things like group_names, inventory_hostname and 
variables defined in the inventory are not shown in a dump of hostvars.  Am 
I imagining things?

By 'dump' I mean a jinja2 template with the following code

{{ hostvars | to_nice_json }}  - does not include group_names, 
inventory_name, etc
{{ hostvars['my_hostname'] | to_nice_json }} - does include group_names, etc

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/019c4179-736b-419f-9c27-f3baaf4ac689%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to