# Register same instance in more than one ELB in parallel using ec2\_elb

**URL:** <https://forum.ansible.com/t/register-same-instance-in-more-than-one-elb-in-parallel-using-ec2-elb/23452>\
**Category:** Ansible Project\
**Created:** [January 13, 2017, 11:57am UTC](https://forum.ansible.com/t/register-same-instance-in-more-than-one-elb-in-parallel-using-ec2-elb/23452 "2017-01-13T11:57:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ivan\_farre\_Vicente](https://avatars.discourse-cdn.com/v4/letter/i/a6a055/32.png) [@ivan\_farre\_Vicente](https://forum.ansible.com/u/ivan_farre_Vicente)\
**Post date:** [January 13, 2017, 11:57am UTC](https://forum.ansible.com/t/register-same-instance-in-more-than-one-elb-in-parallel-using-ec2-elb/23452/1 "2017-01-13T11:57:12Z")

</div>

We have the same instances behind a group of ELB’s. During deploy we register them using ec2\_elb module like this

> - name: Instance Register  
> tags: balancer,balancer-register  
> environment: “{{ aws\_env }}”  
> local\_action:  
> module: ec2\_elb  
> region: eu-west-1  
> instance\_id: “{{ ansible\_ec2\_instance\_id }}”  
> ec2\_elbs: “{{ item }}”  
> wait\_timeout: 300  
> state: present  
> with\_items: “{{ elbs }}”  
> register: register\_elbs  
> until: register\_elbs|success  
> retries: 3  
> delay: 5

Where elbs var is a list strings with the name of ELB’s affected.

We tried to use loop\_control var to register in parallel without successful. Maybe we should invoke this task in different way.

Some one achieve this manner of add the same instance across multiple ELB’s?

Thanks
