ansible_aws_vpc

Provision AWS VPC, Subnets, Internet and NAT gateways and routes.
git clone git://git.beardyjay.co.uk/ansible_aws_vpc
Log | Files | Refs | README

create_subnets.yml (319B)


      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 }}"