mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
group_by: make sure new group has bigger priority than all group
This commit is contained in:
parent
a2cfe8770b
commit
3c06833302
1 changed files with 1 additions and 0 deletions
|
@ -93,6 +93,7 @@ class ActionModule(object):
|
|||
if not inv_group:
|
||||
inv_group = ansible.inventory.Group(name=group)
|
||||
inventory.add_group(inv_group)
|
||||
inventory.get_group('all').add_child_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:
|
||||
|
|
Loading…
Reference in a new issue