mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-27 04:41:26 -07:00
synchronize module src and dest handles template markers.
This commit is contained in:
parent
99f616ecff
commit
cbae9c913e
1 changed files with 4 additions and 0 deletions
|
@ -20,6 +20,7 @@ import os.path
|
||||||
|
|
||||||
from ansible import utils
|
from ansible import utils
|
||||||
from ansible.runner.return_data import ReturnData
|
from ansible.runner.return_data import ReturnData
|
||||||
|
import ansible.utils.template as template
|
||||||
|
|
||||||
class ActionModule(object):
|
class ActionModule(object):
|
||||||
|
|
||||||
|
@ -57,6 +58,9 @@ class ActionModule(object):
|
||||||
src = options.get('src', None)
|
src = options.get('src', None)
|
||||||
dest = options.get('dest', None)
|
dest = options.get('dest', None)
|
||||||
|
|
||||||
|
src = template.template(self.runner.basedir, src, inject)
|
||||||
|
dest = template.template(self.runner.basedir, dest, inject)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
options['local_rsync_path'] = inject['ansible_rsync_path']
|
options['local_rsync_path'] = inject['ansible_rsync_path']
|
||||||
except KeyError:
|
except KeyError:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue