delegate_to in loop: only connecting to first host in list

Hi (again!)

Found another unexpected issue with my code.
I’m trying to automate the deployment of an application which consists of some java processes in Linux servers, and then a GUI client running on Windows. So, I’m using a delegated task to clear some cached files in the Windows servers when I change the app version in the backend.

I’ve simplified the problem I’m seeing into the following play:

`

open bug, it seems that delegation uses the connection data of the
first host delegated to
https://github.com/ansible/ansible/issues/13880

I just hit this exact same bug with ansible-2.0.1.0. The bug report was submitted for ansible-2.0.0.0. My use case is same as the original report - enabling/disabling backend servers via the haproxy module.

The ticket says: “We believe the above commit should resolve this problem for you. This will also be included in the next major release.”

What is the “next major release” that is supposed to fix this bug?