I’m using a custom vars plugin[1] under ansible 1.9. In 1.9 by calling
`host.get_variables()`, I would get back a set of combined host and group vars.
However, under ansible 2.0, this is not the case. I’ve been scouring the
code, looking for similar functionality. Could someone give me an idea of how
to accomplish the equivalent in 2.0? I’m looking for the combined host/group
vars from my inventory.
(Epdb) host.get_vars()
{'inventory_hostname': u'mhv-rhel-7', 'group_names': [u'mhv', u'vagrant'],
'inventory_hostname_short': u'mhv-rhel-7'}
[1]
https://github.com/blueboxgroup/ursula/blob/master/plugins/vars/default_vars.py#L60
--
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/etPan.5695e1ed.4a208d6b.13665%40JODEWEY-M-D5JW.
For more options, visit https://groups.google.com/d/optout.