Fixing up parameterized task includes such that variables can be easily handed to them.
parent
8e12440db4
commit
98a5565106
|
@ -105,7 +105,7 @@ class Play(object):
|
||||||
|
|
||||||
for t in tokens[1:]:
|
for t in tokens[1:]:
|
||||||
(k,v) = t.split("=", 1)
|
(k,v) = t.split("=", 1)
|
||||||
task_vars[k]=v
|
task_vars[k] = utils.template(v, task_vars)
|
||||||
include_file = utils.template(tokens[0], task_vars)
|
include_file = utils.template(tokens[0], task_vars)
|
||||||
data = utils.parse_yaml_from_file(utils.path_dwim(self.playbook.basedir, include_file))
|
data = utils.parse_yaml_from_file(utils.path_dwim(self.playbook.basedir, include_file))
|
||||||
elif type(x) == dict:
|
elif type(x) == dict:
|
||||||
|
|
Loading…
Reference in New Issue