Commit 22ff8282 by Jeroen Hoekx

Template template module source.

parent b678cf78
......@@ -463,6 +463,10 @@ class Runner(object):
else:
metadata = '~/.ansible/setup'
# apply templating to source argument
inject = self.setup_cache.get(conn.host,{})
source = utils.template(source, inject)
# first copy the source template over
temppath = tmp + os.path.split(source)[-1]
conn.put_file(utils.path_dwim(self.basedir, source), temppath)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment