Commit 51a2dc5f by Fred Smith

make the number of instances configurable, default to existing behavior of one per AZ

parent 9bf009c0
......@@ -240,12 +240,12 @@
wait: "yes"
group_id: "{{ service_sec_group.group_id }}"
key_name: "{{ service_config.key_name }}"
vpc_subnet_id: "{{ item.subnet_id }}"
vpc_subnet_id: "{{ created_service.subnets.results[item|int % created_service.subnets.results|length].subnet_id }}"
instance_type: "{{ service_config.instance_type }}"
instance_tags: "{{ asg_instance_tags }}"
image: "{{ service_config.ami }}"
instance_profile_name: "{{ instance_profile_name }}"
volumes: "{{ service_config.volumes }}"
with_items: created_service_subnets.results
with_sequence: count={{create_instances|default(created_service.subnets.results|length) }}
when: not auto_scaling_service and potential_existing_instances.instances|length == 0
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