Revert "for #2196 now gruopby module invalidates host cached variables so they can be reevaluated with new groups"
This reverts commit 2d86671aa5
.
This commit is contained in:
parent
43ce2caa4f
commit
dc0515a88a
1 changed files with 0 additions and 1 deletions
|
@ -71,7 +71,6 @@ class ActionModule(object):
|
||||||
inv_group = ansible.inventory.Group(name=group)
|
inv_group = ansible.inventory.Group(name=group)
|
||||||
inventory.add_group(inv_group)
|
inventory.add_group(inv_group)
|
||||||
for host in hosts:
|
for host in hosts:
|
||||||
del self.runner.inventory._vars_per_host[host]
|
|
||||||
inv_host = inventory.get_host(host)
|
inv_host = inventory.get_host(host)
|
||||||
if not inv_host:
|
if not inv_host:
|
||||||
inv_host = ansible.inventory.Host(name=host)
|
inv_host = ansible.inventory.Host(name=host)
|
||||||
|
|
Loading…
Reference in a new issue