Fix for issue @synchronize doesn't substitute variables properly #16347 (#16349)

* Fix for issue @synchronize doesn't substitute variables properly #16347
pull/17045/head
ovcharenko 8 years ago committed by Toshio Kuratomi
parent 08ae111757
commit e464237894

@ -272,10 +272,7 @@ class ActionModule(ActionBase):
if not dest_is_local:
# Private key handling
if use_delegate:
private_key = task_vars.get('ansible_ssh_private_key_file') or self._play_context.private_key_file
else:
private_key = task_vars.get('ansible_ssh_private_key_file') or self._play_context.private_key_file
private_key = self._play_context.private_key_file
if private_key is not None:
private_key = os.path.expanduser(private_key)

Loading…
Cancel
Save