delegate_to and with_items together: only the first item is executed/looped

Hey,

I have Ansible version 2.0.0.2 running in OS X.

I have noticed that when delegate_to is used together with with_items, only the first item in the list is executed and the rest are just ignored (although they show up in Ansible’s play output).

Here is an example:

I want to disable Apache httpd instance (hostname apachevm1) in a group of HAProxy load balancers (hostnames haproxyvm1 and haproxyvm2). The HAProxy hosts are in a group named lb.

check against current devel, this was a bug but should be fixed already.

I have now tried it with 2.0.1 RC1 and also with the latest devel (2.1.0) and seems to work the same way as it worked with 2.0.0.2 - keeps ignoring the rest of the items on the list. I also tried it with 1.9.4 and there it worked perfectly fine! So what gives. :slight_smile:

///hege