Hi,

We're used to do things like

      hostvars[inventory_hostname].somevar

Now, I wanted to debug someting and did

      ansible all -m debug -a var=hostvars

I expected this to return something like

{ 'hostvars':
         'host1':
               'somevar' : somevalue
               ....
          'host2':
                .....
          .....
       }

Instead I got

host1:
        { 'somevar' : somevalue
               ....
       }
host2:
       ....

Another example is at https://p.6core.net/p/RCJAYyK1gzBuEcwZa8Tgx4S5

Now i know 'hostvars' is a special kind of object (some kind of dict that
caches things), but I'm confused on this difference, and have no
explanation for it.



     Serge

-- 
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/CAEhzMJCtYKuN7mPKpS-FKwz9%3Dink2oLKDEW%3DmGcH21%3DegqEgng%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to