mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user