diff --git a/files/synchronize b/files/synchronize index cf4768970bb..1362de5530b 100644 --- a/files/synchronize +++ b/files/synchronize @@ -91,7 +91,6 @@ def main(): src = dict(required=True), dest = dict(required=True), verbosity = dict(default=0), - tmp_dir = dict(default=None), delete = dict(default='no', type='bool'), private_key = dict(default=None), rsync_path = dict(default=None), @@ -106,7 +105,6 @@ def main(): private_key = module.params['private_key'] rsync_path = module.params['rsync_path'] rsync = module.params.get('local_rsync_path', 'rsync') - temp = os.path.dirname(os.path.realpath(__file__)) cmd = '%s --archive --delay-updates --compress' % rsync if module.check_mode: @@ -115,8 +113,6 @@ def main(): cmd = '%s -%s' % (cmd, 'v' * int(verbosity)) else: cmd = cmd + ' --quiet' - if temp: - cmd = cmd + ' --temp-dir ' + temp if delete: cmd = cmd + ' --delete-after' if private_key is None: