need to iterate bunch of tasks with different input values

Hi,

I have desire to run a bunch of tasks with different values but multiple times. Something like mentioned below:

my-play.yml:
task1
task 2



Now, I want to call my-play.yml with with_items. But it is being depreciated.

Can I achieve it in another way, please?

Thanks,
Jyoti Ranjan