The current ssh-agent forwarding relies on the usage of socat to provide a unix domain socket and allow the usage of the agent inside the container.
As the ssh-agent is already forwarded from Windows to WSL2 using the same principle, the method is therefore unreliable (Broken pipe error is thrown when ansible try to simultaneously connect to multiple hosts).
Mapping the WSL2 socket into the container would be a more efficient solution.
The current ssh-agent forwarding relies on the usage of socat to provide a unix domain socket and allow the usage of the agent inside the container. As the ssh-agent is already forwarded from Windows to WSL2 using the same principle, the method is therefore unreliable (Broken pipe error is thrown when ansible try to simultaneously connect to multiple hosts).
Mapping the WSL2 socket into the container would be a more efficient solution.