A follow up to this.

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

On January 12, 2016 at 9:34:39 PM, John Dewey ([email protected]) wrote:

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.56973b4e.28c17427.12fbd%40JODEWEY-M-D5JW.
For more options, visit https://groups.google.com/d/optout.

Reply via email to