# Ask about "side by side" loop

**URL:** <https://forum.ansible.com/t/ask-about-side-by-side-loop/25032>\
**Category:** Ansible Project\
**Tags:** vmware\
**Created:** [July 20, 2017, 3:04pm UTC](https://forum.ansible.com/t/ask-about-side-by-side-loop/25032 "2017-07-20T15:04:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aldyth\_maharsha](https://avatars.discourse-cdn.com/v4/letter/a/45deac/32.png) [@aldyth\_maharsha](https://forum.ansible.com/u/aldyth_maharsha)\
**Post date:** [July 20, 2017, 3:04pm UTC](https://forum.ansible.com/t/ask-about-side-by-side-loop/25032/1 "2017-07-20T15:04:54Z")

</div>

Hi All

I have question and I’m newbie in ansible…I try to clone multiple vm from template in vmware with each of them have different ip address…Example my script below

---

<div class="post-metadata">

**Author:** ![azaghal](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/azaghal/32/4743_2.png) [@azaghal](https://forum.ansible.com/u/azaghal)\
**Post date:** [July 20, 2017, 7:46pm UTC](https://forum.ansible.com/t/ask-about-side-by-side-loop/25032/2 "2017-07-20T19:46:36Z")

</div>

Did you consider using a bit of arithmetic instead? Or this is not  
flexible enough for you?

E.g. you could do "{{ 100 + item | int }}" (take note you need the "|  
int" on item because it's a string). Preferably you'd make the "100" a  
parameter instead of leaving it in as magic, of course 🙂

Best regards
