In code the difference is mostly that hostvars is a 'cache' object that internally implements most (but not all, it seems) the methods of a dictionary. The default cache is an actual in memory dictionary but the object still acts as an intermediary.
There is probably a way to make it behave exactly the same in this case, but I would need to look into it deeper. -- Brian Coca -- 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/CAJ5XC8kBfrzJBFVdA-6Ef%2B99K6hby9Ud9Sod4MjZDtQoa7cq-g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
