The community.docker collection of the bin:ansible package embeds
a courtesy copy of docker-py.
The module fails to connect to servers when the managed node has
a python3-requests version of 1.32 or up (such as trixie).
{"changed": false, "msg": "Error connecting: Error while fetching server API version: Not supported URL scheme http+docker"}
This is https://github.com/docker/docker-py/pull/3257 which also
contains a fix that needs to be applied to ansible in, at least,
oldstable (didn’t check stable), to be able to manage trixie hosts.
The fix is two lines plus a comment.
(installed is 7.7.0+dfsg-3+deb12u1 but I dropped the + to not
confuse bts version tracking)