1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Unquote params passed to an include statement

Fixes #8315
This commit is contained in:
James Cammarata 2014-07-28 16:34:59 -05:00
parent 106f4ccc01
commit 6e814566de
2 changed files with 5 additions and 0 deletions

View file

@ -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:

View 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