mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 13:20:23 -07:00
Add transfer checksum verification in copy module (#35367)
* Add transfer checksum verification in copy module, to ensure that the file was transferred to the remote successfully. Fixes #35029 * Guard on no checksum * Add version_added
This commit is contained in:
parent
e8633b7a22
commit
de2427beaf
2 changed files with 17 additions and 0 deletions
|
@ -291,6 +291,9 @@ class ActionModule(ActionBase):
|
|||
original_basename=source_rel,
|
||||
)
|
||||
)
|
||||
if not self._task.args.get('checksum'):
|
||||
new_module_args['checksum'] = local_checksum
|
||||
|
||||
if lmode:
|
||||
new_module_args['mode'] = lmode
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue