|
|
|
@ -80,7 +80,7 @@ attributes:
|
|
|
|
bypass_host_loop:
|
|
|
|
bypass_host_loop:
|
|
|
|
support: none
|
|
|
|
support: none
|
|
|
|
check_mode:
|
|
|
|
check_mode:
|
|
|
|
support: none
|
|
|
|
support: full
|
|
|
|
diff_mode:
|
|
|
|
diff_mode:
|
|
|
|
support: full
|
|
|
|
support: full
|
|
|
|
platform:
|
|
|
|
platform:
|
|
|
|
@ -212,6 +212,7 @@ def main():
|
|
|
|
decrypt=dict(type='bool', default=True),
|
|
|
|
decrypt=dict(type='bool', default=True),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
add_file_common_args=True,
|
|
|
|
add_file_common_args=True,
|
|
|
|
|
|
|
|
supports_check_mode=True,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
changed = False
|
|
|
|
changed = False
|
|
|
|
@ -266,12 +267,13 @@ def main():
|
|
|
|
if backup and dest_hash is not None:
|
|
|
|
if backup and dest_hash is not None:
|
|
|
|
result['backup_file'] = module.backup_local(dest)
|
|
|
|
result['backup_file'] = module.backup_local(dest)
|
|
|
|
|
|
|
|
|
|
|
|
module.atomic_move(path, dest, unsafe_writes=module.params['unsafe_writes'])
|
|
|
|
if not module.check_mode:
|
|
|
|
|
|
|
|
module.atomic_move(path, dest, unsafe_writes=module.params['unsafe_writes'])
|
|
|
|
changed = True
|
|
|
|
changed = True
|
|
|
|
|
|
|
|
|
|
|
|
cleanup(module, path, result)
|
|
|
|
cleanup(module, path, result)
|
|
|
|
|
|
|
|
|
|
|
|
# handle file permissions
|
|
|
|
# handle file permissions (check mode aware)
|
|
|
|
file_args = module.load_file_common_arguments(module.params)
|
|
|
|
file_args = module.load_file_common_arguments(module.params)
|
|
|
|
result['changed'] = module.set_fs_attributes_if_different(file_args, changed)
|
|
|
|
result['changed'] = module.set_fs_attributes_if_different(file_args, changed)
|
|
|
|
|
|
|
|
|
|
|
|
|