Commit Graph

42 Commits (5f48bf1da77d4c6e1f09ff4c698d93efffcb4765)

Author SHA1 Message Date
Michael DeHaan 1b48465106 Slight typo fix.
Henry Finucane 9fd91bec5d Make 'compress' optional
Mikhail Emelchenkov cadb57f446 Fixed incorrect handling of paths contaiin whitespaces
James Cammarata b53bf7c8b1 Minor tweak to rsync_path construction in synchronize module
Fixes 
Skyler Leigh Amador 6eb8759ec5 Remove --timeout option to rsync from synchronize defaults
The current 10-second default timeout for rsync seems to be behind issue .

As a workaround for the underlying issue in rsync when different versions are
used on the source and destination sides, don't include the timeout option
unless the user specifies a timeout > 0.
James Tanner 0f82a2b53c Addresses Remove version_added from description string
James Tanner f2c9c2c141 Addresses set version_added for rsync_opts
jctanner 7a6267690e Merge pull request from jjshoe/devel
Allow you to pass in arbitrary rsync options
Michael DeHaan a8b345ad38 Repairs for documentation build.
Michael DeHaan f596ee8850 Slight docs tweak, split lines according to code standards
Andrea.Mandolo 2a66f356b1 correct documentation comment and version_added in "synchronize" module
Andrea.Mandolo 7cd21a47ef Add STDOUT lines in response of "synchronize" module
Andrea.Mandolo 33b440ac9f Add "checksum" option support to 'synchronize' module
jjshoe a5794f5d8c Allow you to pass in arbitrary rsync options. I also added help for it, and what version it was added in.
jjshoe e62b38c250 Show argument dependency
failed: [192.168.1.2] => {"cmd": "rsync --delay-updates -FF --compress --timeout=10 --delete-after --rsh 'ssh -i /home/jjshoe/.vagrant.d/insecure_private_key -o StrictHostKeyChecking=no' --rsync-path 'sudo rsync' --out-format='<<CHANGED>>%i %n%L' /tmp/app vagrant@192.168.1.2:/home/ubuntu/app", "failed": true, "item": "", "rc": 1}
msg: rsync: --delete does not work without --recursive (-r) or --dirs (-d).
rsync error: syntax or usage error (code 1) at main.c(1453) [client=3.0.9]
James Tanner 7c263fcdad Fixes add set_remote_user parameter to synchronize
This allows usage of custom ssh configs for remote hosts where
the inventory user does not match the configured user.
James Tanner fc33860e5d Force command action to not be executed by the shell unless specifically enabled
jctanner 552ce8b68c Merge pull request from deontologician/patch-1
Added -FF flag to rsync invocation in synchronize
jctanner e13a10def7 Merge pull request from ovcharenko/patches
synchronize module: Added existing_only options to skip creating new files on receiver
Wim 7b8918d37c Add support for --copy-links
Aleksey Ovcharenko d8b160d385 Downgraded module version_added.
Peter Salvatore 4c168abccc fix typo in synchronize module
Aleksey Ovcharenko 1b2d359a69 Added version_added
James Tanner f210e0c862 Fixes synchronize module ssh port
Added a parameter for dest_port and also check ansible_ssh_port inventory variable.
James Tanner 38edad70ac Fixes Convert all modules to use new snippet import pattern
Aleksey Ovcharenko 8413552642 Fixed a typo.
Josh Kuhn c2a59a97c4 Added note about .rsync-filter files, with example
Josh Kuhn eccaf457af Added -FF flag to rsync invocation in synchronize
The `-FF` option causes rsync to look for files in the source directory named `.rsync-filter` and uses them to filter directories underneath them. If no `.rsync-filter` files are found, the behavior is identical to the command run without the -FF option. This flag does not sync the .rsync-filter files themselves.

This change should be backwards compatible and not produce surprising behavior for users, since they are unlikely to create `.rsync-filter` files unintentionally.
Aleksey Ovcharenko bb3a23d40a Added existing_only options to skip creating new files on receiver
James Tanner 7b3fbeee16 Addresses Add module notes about the behavior of sudo and the destination paths within the synchronize module.
James Tanner 403469bf19 Update synchronize docstrings for rsync_timeout parameter
James Tanner ae1248dee6 Add a timeout to the synchronize module to prevent infinite hangs while waiting on passwords for misconfigured users
Timothy Appnel 4e8f5eaef5 Added docs for archive options in sychronize module. Added missing default value for dirs option.
Timothy Appnel 4cb2cb9bac Modified changed marker in sychronize module
Timothy Appnel d7c737516e Added archive options to sychronize module as suggested by @smoothify but with a different default scheme to keep param definitions to a minimum.
Timothy Appnel 10f336a97c Added ingenious change detection trick from @smoothify though at the cost of verbosity controls. (Quiet or verbosity > 1 breaks change detection. Also added better use of module_common methods.
Timothy Appnel 35068527db Removed busted tmp_dir option that was a bad idea to begin with.
Timothy Appnel 26585aae46 Updated version_added in sychronize module
Timothy Appnel e692212a36 Return of sychronize module code for take 3
Michael DeHaan 9b1069c40a Removing synchronize momentarily as it looks like this won't make 1.3 dates
Michael DeHaan fad21a4af0 Add missing version_added to docs.
Michael DeHaan 24f72b78db Style/docs cleanup, and also improve an error message.