Revert pull request #1091

Automatic quoting of variables in only_if breaks existing playbooks
where entire statements are put in a variable, and other cases. See
issue #1120 for details.
This commit is contained in:
Daniel Hokka Zakrisson
2012-09-28 13:58:23 +02:00
parent 06cfc52afd
commit 4b29c2cf74
3 changed files with 4 additions and 70 deletions

View File

@@ -323,7 +323,7 @@ class Runner(object):
new_args = new_args + "%s='%s' " % (k,v)
module_args = new_args
conditional = utils.template(self.basedir, self.conditional, inject, do_repr=True)
conditional = utils.template(self.basedir, self.conditional, inject)
if not utils.check_conditional(conditional):
result = utils.jsonify(dict(skipped=True))
self.callbacks.on_skipped(host, inject.get('item',None))