# Looping contruct - linode.cloud.nodebalancer

**URL:** <https://forum.ansible.com/t/looping-contruct-linode-cloud-nodebalancer/36488>\
**Category:** Ansible Project\
**Tags:** galaxy-ng\
**Created:** [March 28, 2022, 8:25pm UTC](https://forum.ansible.com/t/looping-contruct-linode-cloud-nodebalancer/36488 "2022-03-28T20:25:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Stoffel](https://avatars.discourse-cdn.com/v4/letter/j/85f322/32.png) [@John\_Stoffel](https://forum.ansible.com/u/John_Stoffel)\
**Post date:** [March 28, 2022, 8:25pm UTC](https://forum.ansible.com/t/looping-contruct-linode-cloud-nodebalancer/36488/1 "2022-03-28T20:25:57Z")

</div>

Hi,  
I’m looking for some help in setting up a Linode Nodebalancer, but I think my question is more about how to build a more dynamic playbook using the ‘linode.cloud.nodebalancer’ module from Ansible Galaxy.

So I could hardcode my playbook to use two nodes (hosts) and thier private IPs for the setup. But what if I want to have three hosts or more behind the nodebalancer? An example playbook looks like this:
