Transforming strings into lists
Use theansible.builtin.splitfilter to transform a character/string delimited string into a list of items suitable forlooping. For example, if you want to split a string variablefruitsby commas, you can use:
String data (before applying theansible.builtin.splitfilter):
List data (after applying theansible.builtin.splitfilter):