Commit Graph

42 Commits (68e59332c7fd65e11a410f7cc87fa89995968c6f)

Author SHA1 Message Date
Michael DeHaan 8da853ec7a Slight typo fix. 10 years ago
Henry Finucane 49889bd808 Make 'compress' optional 10 years ago
Mikhail Emelchenkov a2ca0441ae Fixed incorrect handling of paths contaiin whitespaces 11 years ago
James Cammarata ac1948c04c Minor tweak to rsync_path construction in synchronize module
Fixes #7182
11 years ago
Skyler Leigh Amador a8d9470938 Remove --timeout option to rsync from synchronize defaults
The current 10-second default timeout for rsync seems to be behind issue #6809.

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.
11 years ago
James Tanner b0556ab1fb Addresses #6702 Remove version_added from description string 11 years ago
James Tanner 42fbbd0502 Addresses #6702 set version_added for rsync_opts 11 years ago
jctanner bb3ce0c744 Merge pull request #6702 from jjshoe/devel
Allow you to pass in arbitrary rsync options
11 years ago
Michael DeHaan 8baaf458c7 Repairs for documentation build. 11 years ago
Michael DeHaan c1fbf80f70 Slight docs tweak, split lines according to code standards 11 years ago
Andrea.Mandolo 838b914a0d correct documentation comment and version_added in "synchronize" module 11 years ago
Andrea.Mandolo c039dbe300 Add STDOUT lines in response of "synchronize" module 11 years ago
Andrea.Mandolo f9ec53cdef Add "checksum" option support to 'synchronize' module 11 years ago
jjshoe d57910b93a Allow you to pass in arbitrary rsync options. I also added help for it, and what version it was added in. 11 years ago
jjshoe 12c84dd6bd 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]
11 years ago
James Tanner ea5186ca63 Fixes #6590 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.
11 years ago
James Tanner ba0fec4f42 Force command action to not be executed by the shell unless specifically enabled 11 years ago
jctanner f50f29f304 Merge pull request #5051 from deontologician/patch-1
Added -FF flag to rsync invocation in synchronize
11 years ago
jctanner 825a20780f Merge pull request #5127 from ovcharenko/patches
synchronize module: Added existing_only options to skip creating new files on receiver
11 years ago
Wim 06576fed25 Add support for --copy-links 11 years ago
Aleksey Ovcharenko c57445c5f3 Downgraded module version_added. 11 years ago
Peter Salvatore 12cb1afdc8 fix typo in synchronize module 11 years ago
Aleksey Ovcharenko dcf0fdb9e2 Added version_added 11 years ago
James Tanner d227614529 Fixes #5109 synchronize module ssh port
Added a parameter for dest_port and also check ansible_ssh_port inventory variable.
11 years ago
James Tanner 6000d636b3 Fixes #5023 Convert all modules to use new snippet import pattern 11 years ago
Aleksey Ovcharenko bcd7af3991 Fixed a typo. 11 years ago
Josh Kuhn b1a6bc6e7f Added note about .rsync-filter files, with example 11 years ago
Josh Kuhn 517e4af2cf 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.
11 years ago
Aleksey Ovcharenko 2814828bc9 Added existing_only options to skip creating new files on receiver 11 years ago
James Tanner 5c34ed0827 Addresses #4676 Add module notes about the behavior of sudo and the destination paths within the synchronize module. 11 years ago
James Tanner 9fb4be0e73 Update synchronize docstrings for rsync_timeout parameter 11 years ago
James Tanner 0adf095677 Add a timeout to the synchronize module to prevent infinite hangs while waiting on passwords for misconfigured users 11 years ago
Timothy Appnel 99f616ecff Added docs for archive options in sychronize module. Added missing default value for dirs option. 11 years ago
Timothy Appnel c2e4129812 Modified changed marker in sychronize module 11 years ago
Timothy Appnel c1bec5fa07 Added archive options to sychronize module as suggested by @smoothify but with a different default scheme to keep param definitions to a minimum. 11 years ago
Timothy Appnel 4a30ba3a61 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. 11 years ago
Timothy Appnel 90867d0d0a Removed busted tmp_dir option that was a bad idea to begin with. 11 years ago
Timothy Appnel 370784ef61 Updated version_added in sychronize module 11 years ago
Timothy Appnel 32ae6fdd43 Return of sychronize module code for take 3 11 years ago
Michael DeHaan dacd311474 Removing synchronize momentarily as it looks like this won't make 1.3 dates 11 years ago
Michael DeHaan cde87f2f55 Add missing version_added to docs. 11 years ago
Michael DeHaan f8c97d6e79 Style/docs cleanup, and also improve an error message. 11 years ago