Commit 62e9cf63 by James Cammarata

Merge pull request #8170 from sergevanginderachter/issue_8159

Load existing group_vars file for new group_by group
parents db15b778 4e9a253b
......@@ -93,6 +93,7 @@ class ActionModule(object):
if not inv_group:
inv_group = ansible.inventory.Group(name=group)
inventory.add_group(inv_group)
inv_group.vars = inventory.get_group_variables(group, update_cached=False, vault_password=inventory._vault_password)
for host in hosts:
if host in self.runner.inventory._vars_per_host:
del self.runner.inventory._vars_per_host[host]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment