# need to iterate bunch of tasks with different input values

**URL:** <https://forum.ansible.com/t/need-to-iterate-bunch-of-tasks-with-different-input-values/18671>\
**Category:** Ansible Developer\
**Created:** [July 3, 2015, 2:19pm UTC](https://forum.ansible.com/t/need-to-iterate-bunch-of-tasks-with-different-input-values/18671 "2015-07-03T14:19:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jyoti\_Ranjan](https://avatars.discourse-cdn.com/v4/letter/j/fbc32d/32.png) [@Jyoti\_Ranjan](https://forum.ansible.com/u/Jyoti_Ranjan)\
**Post date:** [July 3, 2015, 2:19pm UTC](https://forum.ansible.com/t/need-to-iterate-bunch-of-tasks-with-different-input-values/18671/1 "2015-07-03T14:19:43Z")

</div>

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
