-
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
incompatible change in copy resultset in 2.4 #31477
Comments
possible workaround: - name: "show attribute 'dest'"
debug: var=item
with_items:
- '{{(t_copyresults.results|selectattr("path", "defined")|map(attribute="path")|list+t_copyresults.results|selectattr("dest", "defined")|map(attribute="dest")|list)|list|unique}}' but... really? |
This is pretty much making Ansible 2.4 unusable for us. Confirmed that the resultset contains Example when file was copied:
Example when running the same task a 2nd time, this time with the file:
|
Looks like when the file needs to be copied, the However when the file checksum is the same, the The I still don't see exactly where in commit f86ce09 this got changed, however the copy action was pretty heavily refactored and the diff is hard to read, so seems plausible the change was introduced there. |
I've prepared a failing test case: ktosiek@d324c09 |
ISSUE TYPE
COMPONENT NAME
copy
ANSIBLE VERSION
CONFIGURATION
n/a
OS / ENVIRONMENT
n/a
SUMMARY
Between ansible 2.3.2 to 2.4.0 the
results
array of thecopy
module has changed in an incompatible way regardingpath
anddest
.STEPS TO REPRODUCE
ansible-playbook copy.yml
EXPECTED RESULTS
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: