[ansible-project] Re: Combinations of lists

2015-12-07 Thread Mike Biancaniello
have you tried ansible_nested ( http://docs.ansible.com/ansible/playbooks_loops.html#nested-loops) Enter code here..--- - name: stuff hosts: localhost gather_facts: no connection: local vars: l: [a,b,c] n: [1,2,3] tasks: - name: show nested debug: msg="[{{ item[0]

[ansible-project] Re: Combinations of lists

2015-12-07 Thread Chris Searle
I cannot believe I missed that. Well - actually I can - I said I thought I was missing something obvious :) I don't know how many times I read the with_nested docs without spotting it was _exactly_ what I needed - even by name. For some reason it just didn't register. Many thanks - worked