I'm writing a shell ansible script and one of the things I need to do is populate a list in an ini file from an inventory file using jinja2.
Currently it takes in variables component_group_1 and component_group_2 for group keys and populates a list of components from there
components: "{{groups[component_group_1]+groups[component_group_2]}}"
How can I rewrite this line so that it so that it can take just a single variable named all_component_groups, which has all the needed group keys in this pattern 'customers,vendors,products....', and where there can be any number of group keys?