Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Reviewed-by: Abhijeet Kasurde <None> Reviewed-by: None <None>
- Loading branch information