Files
community.general/lib/ansible/modules/windows
Dag Wieers 98934939af win_copy: Add force parameter and check-mode support (#20405)
* win_copy: Add force parameter and check-mode support

The rationale behind this is that if you're working with +3GB files,
creating the checksum takes a lot of time, which we can avoid by simply
testing if the file exists.

I also took the liberty to put the various parameters together. It
probably takes a (neglible) performance hit but makes the code a bit
easier to inspect/work with, as its closer to all other windows modules.

On a normal run, the action plugin does a local checksum of the source
and a remote checksum of the destination. And afterwards, the module
will do another remote checksum of the copied source, a remote checksum
of the original destination, and another remote checksum of the copied
destination.

On a very huge file (think 4GB) that means 5x reading the complete file
(if you have a large cache you may get away with it, otherwise you're
doomed !).

This patch will ensure with `force: no` that not checksums are being
performed.

* Moving presence check before remote checksum

* Adapted to wishes

* Even more performance improvements
2017-02-24 18:10:09 -08:00
..
2016-12-08 11:22:22 -05:00
2017-02-06 19:32:00 -05:00
2017-02-23 22:38:17 -08:00
2016-12-13 13:51:13 -05:00
2016-12-13 13:51:13 -05:00
2017-02-15 13:01:43 -08:00
2017-02-08 22:19:08 +00:00
2017-02-15 13:01:43 -08:00
2016-12-13 13:51:13 -05:00
2016-12-13 13:51:13 -05:00
2017-02-15 13:01:43 -08:00
2017-01-17 20:21:04 -08:00
2017-02-15 13:01:43 -08:00
2017-01-27 13:23:01 -08:00
2017-02-15 13:01:43 -08:00
2017-02-20 11:50:27 +00:00
2017-01-27 17:08:02 -08:00
2017-01-27 14:06:21 -08:00
2017-02-23 22:58:51 -08:00
2017-02-23 22:58:51 -08:00
2017-02-15 13:01:43 -08:00