mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-28 03:00:23 -07:00
Template template module source.
This commit is contained in:
parent
b678cf783c
commit
22ff8282a8
1 changed files with 4 additions and 0 deletions
|
@ -463,6 +463,10 @@ class Runner(object):
|
||||||
else:
|
else:
|
||||||
metadata = '~/.ansible/setup'
|
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
|
# first copy the source template over
|
||||||
temppath = tmp + os.path.split(source)[-1]
|
temppath = tmp + os.path.split(source)[-1]
|
||||||
conn.put_file(utils.path_dwim(self.basedir, source), temppath)
|
conn.put_file(utils.path_dwim(self.basedir, source), temppath)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue