parameterized roles which can import 1 or multiple dashboards based on requirements

I have following ansible playbook ,which will import few dashboards in an iteration, but i am trying to import dashboard based on input parameter(like kafka,kubernetes etc).

could anyone help please.

-Playbook: