|
|
@ -504,9 +504,12 @@ class Runner(object):
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
handler = utils.plugins.action_loader.get('async', self)
|
|
|
|
handler = utils.plugins.action_loader.get('async', self)
|
|
|
|
|
|
|
|
|
|
|
|
conditional = template.template(self.basedir, self.conditional, inject, expand_lists=False)
|
|
|
|
if type(self.conditional) != list:
|
|
|
|
|
|
|
|
self.conditional = [ self.conditional ]
|
|
|
|
|
|
|
|
|
|
|
|
if not utils.check_conditional(conditional):
|
|
|
|
for cond in self.conditional:
|
|
|
|
|
|
|
|
cond = template.template(self.basedir, cond, inject, expand_lists=False)
|
|
|
|
|
|
|
|
if not utils.check_conditional(cond):
|
|
|
|
result = utils.jsonify(dict(changed=False, skipped=True))
|
|
|
|
result = utils.jsonify(dict(changed=False, skipped=True))
|
|
|
|
self.callbacks.on_skipped(host, inject.get('item',None))
|
|
|
|
self.callbacks.on_skipped(host, inject.get('item',None))
|
|
|
|
return ReturnData(host=host, result=result)
|
|
|
|
return ReturnData(host=host, result=result)
|
|
|
|