mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-02 14:40:19 -07:00
Add tests for new advanced inventory features (groups of groups, group variables) in the default INI format file.
This commit is contained in:
parent
1a00e2635e
commit
157d21b1c3
4 changed files with 94 additions and 10 deletions
|
@ -57,6 +57,6 @@ class Host(object):
|
|||
results.update(self.vars)
|
||||
results['inventory_hostname'] = self.name
|
||||
groups = self.get_groups()
|
||||
results['group_names'] = [ g.name for g in groups if g.name != 'all']
|
||||
results['group_names'] = sorted([ g.name for g in groups if g.name != 'all'])
|
||||
return results
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue