vars plugin and host/group vars

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

A follow up to this.

https://github.com/ansible/ansible/issues/13873