vars plugin and host/group vars

39 views
Skip to first unread message

John Dewey

unread,
Jan 13, 2016, 12:34:56 AM1/13/16
to Ansible Project
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'}

John Dewey

unread,
Jan 14, 2016, 1:08:25 AM1/14/16
to Ansible Project
Reply all
Reply to author
Forward
0 new messages