create_subnets.yml - ansible-roles - A collection of ansible roles I have created over the years.
(HTM) git clone git://jay.scot/ansible-roles
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
create_subnets.yml (322B)
---
1 ---
2
3 - name: create subnets
4 ec2_vpc_subnet:
5 az: "{{ item.az }}"
6 cidr: "{{ item.cidr_block }}"
7 region: "{{ aws_region }}"
8 state: present
9 map_public: "{{ item.assign_public_ip|default(omit) }}"
10 tags:
11 Name: "{{ item.name }}"
12 vpc_id: "{{ my_vpc.vpc.id }}"
13 with_items: "{{ vpc.subnets }}"