Unquote params passed to an include statement

Fixes #8315
pull/8325/merge
James Cammarata 10 years ago
parent 106f4ccc01
commit 6e814566de

@ -573,6 +573,7 @@ class Play(object):
mv = task_vars.copy()
for t in tokens[1:]:
(k,v) = t.split("=", 1)
v = utils.splitter.unquote(v)
mv[k] = template(self.basedir, v, mv)
dirname = self.basedir
if original_file:

@ -121,3 +121,7 @@
include: test_include.yml param={{ test_input }}
register: result
- name: test includes with quoted params
include: test_include.yml param="this is a param"
register: result

Loading…
Cancel
Save