Recently, I've also hit this bug. This bug was already fixed in upstream but not released yet. I hope patch was applied in Debian because it breaks idempotence.
FYI: copy module: modify time on the file (mtime) is not updating https://github.com/ansible/ansible/issues/83013 Regards,