group_names should not include implied 'all', fixes #12763
This commit is contained in:
parent
68121b7990
commit
aee6de5a76
1 changed files with 1 additions and 1 deletions
|
@ -330,7 +330,7 @@ class VariableManager:
|
|||
variables['playbook_dir'] = loader.get_basedir()
|
||||
|
||||
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:
|
||||
variables['groups'] = dict()
|
||||
|
|
Loading…
Reference in a new issue