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 diff output for multi files #81346
base: devel
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you able to create a changelog fragment for this new feature https://docs.ansible.com/ansible/latest/community/development_process.html#creating-changelog-fragments.
It would also be great if we can add an integration test for this to just make sure it doesn't blow up with some untested branches. You can just add diff: true
to the task level directives for an existing task that is copying multiple files.
I see there already is a recursive copy with check mode. Is that sufficient? edit: that's not a recursive copy, disregard edit2: here's one: |
Even so just adding |
oh, I've mixed up check mode with diff mode. |
I'm not clear on how adding edit: I mixed check/diff up again... |
|
The test
|
I see a check failed like this:
I don't think that |
@jborean93 Can the CI be run again? |
@jborean93 I wanted to give this a nudge in case it fell through the cracks. I'd appreciate your feedback when you get the chance |
to sidestep this broken contribution process I made my own collection: https://github.com/simonLeary42/ansible_copy_multi_diff I couldn't figure out how to publish on ansible galaxy, there was no "my content" page or an "add an API key" function that I could find. |
The copy module will now build a list of diffs as it iterates recursively over a directory.
addresses the following issue:
#74947
#75727