[ansible-project] Re: Update variable for each loop iteration?

2021-12-01 Thread Ron T
Thanks, that is a great help, I'll give it a try. Also I stumbled across the product filter. Would it also work for this issue? I tried to incorporate it into your example but haven't figured out the syntax so far. loop: "{{ common_vars | product( unique_vars )| list }}" On Monday, November

[ansible-project] Re: Update variable for each loop iteration?

2021-11-29 Thread Todd Lewis
"What works" and "what you should do" don't always overlap. Here's an idea: --- - name: Combining common list with unique lists hosts: localhost vars: common_vars: - listname1: common name: animal path: home type: dog legs: 4 unique_vars: