diff --git a/plugins/modules/synchronize.py b/plugins/modules/synchronize.py index 86cf360d43..e22a0d6616 100644 --- a/plugins/modules/synchronize.py +++ b/plugins/modules/synchronize.py @@ -430,8 +430,8 @@ def main(): except ValueError: module.fail_json(msg='Could not determine controller hostname for rsync to send to') else: - source = module.params['src'] - dest = module.params['dest'] + source = '"' + module.params['src'] + '"' + dest = '"' + module.params['dest'] + '"' dest_port = module.params['dest_port'] delete = module.params['delete'] private_key = module.params['private_key']