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
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/35f7cabd-0e93-4627-beba-a3c84db26ed2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.