mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-18 14:21:06 -07:00
This reverts commit dfb2f346d8
.
https://github.com/ansible/ansible/pull/33828
This commit is contained in:
parent
2f67d3a4f3
commit
cfb15b0272
2 changed files with 3 additions and 14 deletions
|
@ -140,9 +140,6 @@ class InventoryModule(BaseFileInventoryPlugin):
|
|||
for host_pattern in group_data['hosts']:
|
||||
hosts, port = self._parse_host(host_pattern)
|
||||
self._populate_host_vars(hosts, group_data['hosts'][host_pattern] or {}, group, port)
|
||||
if group == 'all':
|
||||
for host in hosts:
|
||||
self.inventory.add_host(host, group='ungrouped', port=port)
|
||||
else:
|
||||
self.display.warning('Skipping unexpected key (%s) in group (%s), only "vars", "children" and "hosts" are valid' % (key, group))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue