mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
inventory directory parser: add hosts to group non-recursively
This commit is contained in:
@@ -71,7 +71,7 @@ class InventoryDirectory(object):
|
|||||||
# note: depth numbers on duplicates may be bogus
|
# note: depth numbers on duplicates may be bogus
|
||||||
for k, v in group.get_variables().iteritems():
|
for k, v in group.get_variables().iteritems():
|
||||||
self.groups[name].set_variable(k, v)
|
self.groups[name].set_variable(k, v)
|
||||||
for host in group.get_hosts():
|
for host in group.hosts:
|
||||||
if host.name not in self.hosts:
|
if host.name not in self.hosts:
|
||||||
self.hosts[host.name] = host
|
self.hosts[host.name] = host
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user