summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/ansible/modules/files/synchronize.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/modules/files/synchronize.py b/lib/ansible/modules/files/synchronize.py
index f814f2e396..7a8d1e1258 100644
--- a/lib/ansible/modules/files/synchronize.py
+++ b/lib/ansible/modules/files/synchronize.py
@@ -438,7 +438,7 @@ def main():
if private_key is None:
private_key = ''
else:
- private_key = '-i '+ private_key
+ private_key = '-i "%s"' % private_key
ssh_opts = '-S none'