summaryrefslogtreecommitdiff
path: root/lib/ansible/plugins/action/template.py
diff options
context:
space:
mode:
authorAbhijeet Kasurde <akasurde@redhat.com>2019-02-19 14:15:19 +0530
committerGitHub <noreply@github.com>2019-02-19 14:15:19 +0530
commit24d1886499ab097f92d95ee70e7c5c385869ced1 (patch)
tree9fc0327d756062d50b42e6a02d823fbe19978767 /lib/ansible/plugins/action/template.py
parent13fa284946ce57805b9a359a9741ff9827686519 (diff)
downloadansible-24d1886499ab097f92d95ee70e7c5c385869ced1.tar.gz
template: add additional variable for dest path (#52015)
Signed-off-by: Dustin Spicuzza <dustin@virtualroadside.com> Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
Diffstat (limited to 'lib/ansible/plugins/action/template.py')
-rw-r--r--lib/ansible/plugins/action/template.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/plugins/action/template.py b/lib/ansible/plugins/action/template.py
index 111da52033..ad21c25969 100644
--- a/lib/ansible/plugins/action/template.py
+++ b/lib/ansible/plugins/action/template.py
@@ -141,7 +141,7 @@ class ActionModule(ActionBase):
# add ansible 'template' vars
temp_vars = task_vars.copy()
- temp_vars.update(generate_ansible_template_vars(source))
+ temp_vars.update(generate_ansible_template_vars(source, dest))
old_vars = self._templar._available_variables
self._templar.set_available_variables(temp_vars)