mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
group_names should not include implied 'all', fixes #12763
This commit is contained in:
@@ -330,7 +330,7 @@ class VariableManager:
|
|||||||
variables['playbook_dir'] = loader.get_basedir()
|
variables['playbook_dir'] = loader.get_basedir()
|
||||||
|
|
||||||
if host:
|
if host:
|
||||||
variables['group_names'] = [group.name for group in host.get_groups()]
|
variables['group_names'] = [group.name for group in host.get_groups() if group.name != 'all']
|
||||||
|
|
||||||
if self._inventory is not None:
|
if self._inventory is not None:
|
||||||
variables['groups'] = dict()
|
variables['groups'] = dict()
|
||||||
|
|||||||
Reference in New Issue
Block a user