mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-18 23:01:14 +00:00
Template template module source.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user