|
|
|
@ -58,8 +58,12 @@ class ActionModule(object):
|
|
|
|
data = {}
|
|
|
|
data = {}
|
|
|
|
data.update(inject)
|
|
|
|
data.update(inject)
|
|
|
|
data.update(inject['hostvars'][host])
|
|
|
|
data.update(inject['hostvars'][host])
|
|
|
|
if not check_conditional(self.runner.basedir, self.runner.conditional, data, fail_on_undefined=self.runner.error_on_undefined_vars):
|
|
|
|
conds = self.runner.conditional
|
|
|
|
continue
|
|
|
|
if type(conds) != list:
|
|
|
|
|
|
|
|
conds = [ conds ]
|
|
|
|
|
|
|
|
for cond in conds:
|
|
|
|
|
|
|
|
if not check_conditional(cond, self.runner.basedir, data, fail_on_undefined=self.runner.error_on_undefined_vars):
|
|
|
|
|
|
|
|
continue
|
|
|
|
group_name = template.template(self.runner.basedir, args['key'], data)
|
|
|
|
group_name = template.template(self.runner.basedir, args['key'], data)
|
|
|
|
group_name = group_name.replace(' ','-')
|
|
|
|
group_name = group_name.replace(' ','-')
|
|
|
|
if group_name not in groups:
|
|
|
|
if group_name not in groups:
|
|
|
|
|