I have variable in role
component: [ mouse, keyboard, cpu ]
in my role i need to import task according to the component variable
- import_tasks: cpu.yml
when: '"cpu" in component'
this work if there is only one value in component, how can i loop over the component var and use it in when condition