-
Notifications
You must be signed in to change notification settings - Fork 23.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
copy module doesn't follow symbolic directory #13013
Comments
@justinligraph with which version of Ansible are you seeing this occur? |
I can confirm this bug in both 2.0.1.0 (Ubuntu repo) as well as the devel branch from git (pulled today). I have attached a small self contained demo. It copies a directory that includes a couple symlinks to /tmp/ of the local machine. One symlink is pointed to a file (called "link_to_file"), one is pointed to a directory (called "link_to_dir"). The directory that "link_to_dir" points to never gets copied (dir2), however the file that "link_to_file" points to does (file2). |
* copy action plugin: recurse into sub folders of the source Fixes #13013 * Fix python3 bytes/strings * Fix py3 again * test
…7614) * copy action plugin: recurse into sub folders of the source Fixes ansible#13013 * Fix python3 bytes/strings * Fix py3 again * test
Copy module was walking over files in subdirectories repeatedly (a directory tree a few levels deep could bring the time spent into the tens of minutes) This was traced to the fix for this bug report: ansible#13013 Fixed ansible#13013 a different way and added an integration test to check for regressions of ansible#13013 as we optimize this code. Fixes ansible#21513
Copy module was walking over files in subdirectories repeatedly (a directory tree a few levels deep could bring the time spent into the tens of minutes) This was traced to the fix for this bug report: #13013 Fixed #13013 a different way and added an integration test to check for regressions of #13013 as we optimize this code. Fixes #21513 (cherry picked from commit 78ced53)
Copy module was walking over files in subdirectories repeatedly (a directory tree a few levels deep could bring the time spent into the tens of minutes) This was traced to the fix for this bug report: ansible#13013 Fixed ansible#13013 a different way and added an integration test to check for regressions of ansible#13013 as we optimize this code. Fixes ansible#21513
ISSUE TYPE
Bug Report
COMPONENT NAME:
copy action plugin
ANSIBLE VERSION
2.0.1.0
SUMMARY
I am copying a folder, foo, which has a subfolder, foo1, which is a symbolic link to another folder say /root/myfoo1. copy module won't copy it to remote location.
The text was updated successfully, but these errors were encountered: