I need to somehow loop over a list of variables and execute both of the below roles once for each iteration, on each iteration passing a variable to the role. For example
Loop over the Cartesian product of variables and role names:
vars: roles_to_include: - role1 - role2 values_to_pass: - 100 - 101 tasks: - include_role: name: "{{ item.1 }}" vars: my_variable: "{{ item.0 }}" loop: "{{ values_to_pass | product(roles_to_include) | list }}"