Revert "Revert "for #2196 now gruopby module invalidates host cached variables so they can be reevaluated with new groups""

This reverts commit dc0515a88a.

We didn't need to revert this :)
This commit is contained in:
Michael DeHaan 2013-03-02 10:38:51 -05:00
parent 5d82b4b1b7
commit 6ad390a92b

View file

@ -71,6 +71,7 @@ class ActionModule(object):
inv_group = ansible.inventory.Group(name=group)
inventory.add_group(inv_group)
for host in hosts:
del self.runner.inventory._vars_per_host[host]
inv_host = inventory.get_host(host)
if not inv_host:
inv_host = ansible.inventory.Host(name=host)