mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Removed busted tmp_dir option that was a bad idea to begin with.
This commit is contained in:
parent
61e726fe82
commit
90867d0d0a
1 changed files with 0 additions and 4 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue