ansible.posix/changelogs/fragments
ansible-zuul[bot] e366b90f39
Merge pull request #278 from asnaedae/hotfix/escape_whitespace_in_paths
Whitespace in fully  path to playbook causes rsync to fail

Any whitespace in path to playbook directory causes rsync to incorrectly chdir fail to correctly run.
SUMMARY
Any whitespace in path to playbook directory causes rsync to incorrectly chdir fail to correctly run.
ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME
ansible.posix.synchronize
ADDITIONAL INFORMATION


Example :
cd "/home/a/ansible plays"

task:
  - synchronize:
      src: a
      dest: b

Results in the following error being thrown
fatal: [remote-host]: FAILED! => {"changed": false, "cmd": "/usr/bin/rsync --delay-updates -F --compress --archive --rsh='/usr/bin/ssh -S none -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null' --rsync-path='sudo -u root rsync' --out-format='<<CHANGED>>%i %n%L' /home/a/ansible plays/deployments// remote-user@remote-host:/b/", "msg": "rsync: [sender] link_stat \"/home/a/ansible\" failed: No such file or directory (2)\nrsync: [sender] change_dir \"/home/a/ansible plays/plays/a/\" failed: No such file or directory (2)\nrsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1330) [sender=3.2.3]\n", "rc": 23}

Reviewed-by: Hideki Saito <saito@fgrep.org>
Reviewed-by: Abhijeet Kasurde <None>
Reviewed-by: None <None>
2021-11-03 04:47:48 +00:00
..
.keep Prepare 1.1.1 release 2020-09-02 20:55:04 +00:00
211_fstab_append_newline.yml mount - add a newline at the end of line in fstab 2021-09-27 12:19:06 +09:00
247_firewalld.yml firewalld: Correct usage of queryForwardPort 2021-08-16 14:12:22 +05:30
254_variable_warnings.yml Display warning message if wrong parameter set to masquerade or icmp-block-inversion 2021-09-06 09:14:34 +09:00
255_authorized_key_url.yml Update changelogs 2021-09-08 11:39:17 +05:30
263_profile_tasks_with_serial.yml Correctly calculate task execution time with serial execution 2021-09-10 13:21:37 +09:00
272-copy_ignore_txt.yml Add fragment 2021-09-28 13:09:10 +02:00
277_fix_integration_test_on_devel.yml Fix integration test error on ansible devel branch 2021-10-04 17:10:20 +09:00
282_fix_unit_test_for_synchronize.yml Fix unit test for synchronize action plugin 2021-10-21 08:18:17 +09:00
disable_selinux_via_kernel_cmdline.yml selinux: update kernel boot params when disabling/re-enabling SELinux 2021-09-20 10:09:54 +05:30
sanity_fixes.yml sanity fixes for pylint test 2021-08-16 16:04:29 +05:30
shell_escape_full_path_for_rsync.yml Whitespaces in paths or current working directory path of playbook causes rsync to incorrectly chdir to current source dir, 2021-10-25 19:44:43 +01:00