Commit 6cc9b16f by Niku Toivola

allow templating of ansible_ssh_private_key_file also in the synchronize module

parent 2faaff78
...@@ -135,6 +135,8 @@ class ActionModule(object): ...@@ -135,6 +135,8 @@ class ActionModule(object):
else: else:
private_key = inject.get('ansible_ssh_private_key_file', self.runner.private_key_file) private_key = inject.get('ansible_ssh_private_key_file', self.runner.private_key_file)
private_key = template.template(self.runner.basedir, private_key, inject, fail_on_undefined=True)
if not private_key is None: if not private_key is None:
private_key = os.path.expanduser(private_key) private_key = os.path.expanduser(private_key)
options['private_key'] = private_key options['private_key'] = private_key
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment