Commit bc5ec38b by Feanil Patel

Don't setup the option group but output db subnets so services can use them.

parent 50dc6a97
......@@ -165,23 +165,6 @@
with_items: vpc_db_subnets
register: created_db_subnets
- name: extract the subnet ids
util_map:
function: 'zip_to_list'
input: "{{ created_db_subnets.results }}"
args:
- "subnet_id"
register: db_subnet_ids
- name: create db subnet group
rds_subnet_group:
profile: "{{ vpc_aws_profile }}"
region: "{{ vpc_aws_region }}"
state: "present"
name: "{{ vpc_db_subnet_group.name }}"
description: "{{ vpc_db_subnet_group.description }}"
subnets: "{{ db_subnet_ids.function_output }}"
- name: output a vpc_config for using to build services
local_action:
module: template
......
......@@ -41,6 +41,11 @@ elb_subnets:
- "{{ subnet.subnet_id }}"
{% endfor %}
db_subnets:
{% for subnet in created_db_subnets %}
- "{{ subnet.subnet_id }}"
{% endfor %}
#
# Do not use vars in policies :(
# Should be specific to the service right?
......
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