From aee6de5a7696520f1fea00a145af055732d8e570 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Thu, 15 Oct 2015 11:46:43 -0400 Subject: [PATCH] group_names should not include implied 'all', fixes #12763 --- lib/ansible/vars/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/vars/__init__.py b/lib/ansible/vars/__init__.py index c37f296388..cd8b44ec59 100644 --- a/lib/ansible/vars/__init__.py +++ b/lib/ansible/vars/__init__.py @@ -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()