community.general/lib/ansible
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
..
cli ansible-doc more flexible to metadata changes 2017-02-24 20:58:37 -05:00
compat Fix typo when choosing KqueueSelector 2017-02-06 08:46:58 -08:00
config Making the switch to v2 2015-05-03 21:47:26 -05:00
errors adds feature to all modules to be run locally (#18763) 2016-12-15 15:47:29 -05:00
executor Fix for traceback when we encounter non-utf8 characters in diff 2017-02-24 12:18:32 -08:00
galaxy Remove unnecessary shebangs and execute bits. 2017-02-22 18:13:46 -08:00
inventory Use a custom id generator over uuid4 2017-02-10 14:38:38 -06:00
module_utils PEP8 E712 fixes (#21916) 2017-02-24 16:49:43 -06:00
modules win_copy: Add force parameter and check-mode support (#20405) 2017-02-24 18:10:09 -08:00
parsing Fix PEP 8 issue. 2017-02-24 12:55:55 -08:00
playbook fixes play context connection user (#21776) 2017-02-22 15:34:11 +00:00
plugins win_copy: Add force parameter and check-mode support (#20405) 2017-02-24 18:10:09 -08:00
template Also clean template data even if marked unsafe 2017-02-10 10:08:55 -06:00
utils PEP8 E712 fixes (#21916) 2017-02-24 16:49:43 -06:00
vars Fix bug introduced in 0df3767 regarding undefined entries in HostVars 2017-02-15 16:22:31 -06:00
__init__.py Fix ziploader for the cornercase of ansible invoking ansible. 2016-04-29 08:47:49 -07:00
constants.py Revert "add systemd-nspawn connection driver" 2017-02-17 16:36:46 -05:00
release.py Bumping devel version to 2.3.0 2016-10-03 11:46:31 -05:00