Commit ae299985 by Feanil Patel

Merge pull request #2030 from edx/jibsheet/associate-elb-to-asg

Jibsheet/associate elb to asg
parents 101e19b0 8137fa89
......@@ -163,7 +163,7 @@
#
- debug: msg="{{ created_service_subnets.results|map(attribute='subnet_id')| list | join(',') }}"
register: service_vpc_zone_identifier_string
- name: Manage ASG
ec2_asg:
profile: "{{ profile }}"
......@@ -177,6 +177,7 @@
desired_capacity: "{{ asg_desired_capacity }}"
vpc_zone_identifier: "{{ service_vpc_zone_identifier_string.msg }}"
tags: "{{ asg_instance_tags }}"
load_balancers: "{{ created_elbs.results|map(attribute='elb.name')|list }}"
register: asg
when: auto_scaling_service
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment