diff options
author | Brian Coca <bcoca@users.noreply.github.com> | 2021-03-26 16:33:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-26 16:33:25 -0400 |
commit | 22330dd322634548e0f4d88aa9c5c017b7c04851 (patch) | |
tree | 7a3b3cfab7b5230afd806d093c0f7dadf459637f /lib/ansible/plugins/action/template.py | |
parent | 4a82e2c4860b88aa2d5ab2fd1f7cd79636005b5f (diff) | |
download | ansible-22330dd322634548e0f4d88aa9c5c017b7c04851.tar.gz |
Correctly set path and fullpath for template vars (#73924)
* Correctly set path and fullpath for template vars
don't expect path to always be full path
also added exception/tb on action fail
Diffstat (limited to 'lib/ansible/plugins/action/template.py')
-rw-r--r-- | lib/ansible/plugins/action/template.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/plugins/action/template.py b/lib/ansible/plugins/action/template.py index 7fe3302787..929497276d 100644 --- a/lib/ansible/plugins/action/template.py +++ b/lib/ansible/plugins/action/template.py @@ -129,7 +129,7 @@ class ActionModule(ActionBase): # add ansible 'template' vars temp_vars = task_vars.copy() - temp_vars.update(generate_ansible_template_vars(source, dest)) + temp_vars.update(generate_ansible_template_vars(self._task.args.get('src', None), source, dest)) # force templar to use AnsibleEnvironment to prevent issues with native types # https://github.com/ansible/ansible/issues/46169 |