Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Made groups.groupname and group_names variables accessible in playbooks.

Also modified code that feeds the groups data structure to templates so
that it resolves groups inside of groups to hostnames.
  • Loading branch information...
commit 9d5a79f5864d18f0d876a264c9571c09a63a8c97 1 parent 20fc6a2
Timothy Appnel authored
Showing with 1 addition and 5 deletions.
  1. +1 −5 lib/ansible/runner/
6 lib/ansible/runner/
@@ -319,11 +319,7 @@ def _executor_internal_inner(self, host, inject, port, is_chained=False):
# 'hostvars' variable contains variables for each host name
# ... and is set elsewhere
# 'inventory_hostname' is also set elsewhere
- group_hosts = {}
- for g in self.inventory.groups:
- group_hosts[] = [ for h in g.hosts ]
- inject['groups'] = group_hosts
+ inject['groups'] = self.inventory.groups_list()
# allow module args to work as a dictionary
# though it is usually a string
new_args = ""
Please sign in to comment.
Something went wrong with that request. Please try again.