I just found https://github.com/ansible/ansible/issues/8546, which explains clearly that when is for each item in the loop. (Which I now recall reading in the docs). So this is clearly not a bug.
And the workaround in that issues works just fine for my case. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/bb19d66f-908e-4faa-9a42-0024aeee2514%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
