Well, nested is one of the 'bad lookups' i was referring to, its cleaner as a filter:
- name: give users access to multiple databases mysql_user: name: "{{ item[0] }}" priv: "{{ item[1] }}.*:ALL" append_privs: yes password: "foo" loop: '{{ l1|product(l2)|list }}' vars: l1: [ 'alice', 'bob' ] l2: [ 'clientdb', 'employeedb', 'providerdb' ] ------------------ Brian Coca -- 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 ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CACVha7cHYjGsG42dUztv1zfpekOBX8ZWRmcF8qRWThCjBToFVQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.