# Using with\_sequence

**URL:** <https://forum.ansible.com/t/using-with-sequence/12493>\
**Category:** Ansible Project\
**Created:** [March 13, 2013, 6:06pm UTC](https://forum.ansible.com/t/using-with-sequence/12493 "2013-03-13T18:06:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kavin](https://avatars.discourse-cdn.com/v4/letter/k/ba8739/32.png) [@Kavin](https://forum.ansible.com/u/Kavin)\
**Post date:** [March 13, 2013, 6:06pm UTC](https://forum.ansible.com/t/using-with-sequence/12493/1 "2013-03-13T18:06:06Z")

</div>

Hi,

I do think this conversation might have happened before, but i could not find reference for it. What is the “Ansible way” to do the following:

Something like sequence but run over entire host group.

e.g.

For an Application Start value can be 0 for node 1 , Then for node 2 increment it by some value say 40, node 3 start value will be 60 ,

What is the best way to do this ?

---

<div class="post-metadata">

**Author:** ![Kavin](https://avatars.discourse-cdn.com/v4/letter/k/ba8739/32.png) [@Kavin](https://forum.ansible.com/u/Kavin)\
**Post date:** [March 13, 2013, 6:08pm UTC](https://forum.ansible.com/t/using-with-sequence/12493/2 "2013-03-13T18:08:20Z")

</div>

I got math wrong I mean : increment by 40

e.g.

For an Application Start value can be 0 for node 1 , Then for node 2 increment it by some value say 40, node 3 start value will be 80 ,

Regards,–  
Kavin Kankeshwar
