1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Merge branch 'group-by-global' of git://github.com/stoned/ansible into devel

Conflicts:
	lib/ansible/runner/action_plugins/group_by.py
This commit is contained in:
Michael DeHaan 2013-05-11 14:28:04 -04:00
commit 05a4513a03

View file

@ -55,11 +55,9 @@ class ActionModule(object):
groups = {}
for host in self.runner.host_set:
data = inject['hostvars'][host]
if not check_conditional(template.template(self.runner.basedir, self.runner.conditional, data)):
if not check_conditional(template.template(self.runner.basedir, self.runner.conditional, inject)):
continue
group_name = template.template(self.runner.basedir, args['key'], data)
group_name = template.template(self.runner.basedir, args['key'], inject)
group_name = group_name.replace(' ','-')
if group_name not in groups:
groups[group_name] = []