Using with_sequence

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 ?

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