My pull request got rejected, so I’ll plead my case for https://github.com/ansible/ansible/pull/3503 :
The with_nested function/whatever it’s called is broken. It produces, incorrectly, a Cartesian product. Look at the end of this email for the output from 3x3 arrays.
Here’s the example that’s supposed to define how with_nested works:
https://github.com/ansible/ansible-examples/blob/master/language_features/loop_nested.yml
This playbook should produce 3 lines of output (so said, because there is no definition anywhere of how this is supposed to function or expected output). However, it produces the output from the end of the email.
This is because the combine function (in https://github.com/ansible/ansible/blob/devel/lib/ansible/runner/lookup_plugins/nested.py) looks like this, comments mine: