Hi, I’m trying to combine two dictionaries that have lists of hashes within a loop and then performa actions upon the result of the combined dictionaries.
The first dictionary has items that are common variables, and the second has items that are unique. How would I update the final_list variable to get the list to loop over it?
Thanks!
group_vars directory
common_vars:
listname1: common
name: animal
path: home
type: dog
legs: 4
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 }}”