Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Piece 7 of Ansible-create-AWS-environment.yml file
- name: create new route table for public subnet
ec2_vpc_route_table:
state: present
region: "{{ vpc_region }}"
vpc_id: "{{ ansibleVPC.vpc.id }}"
tags:
Name: rt_ansibleVPC_PublicSubnet
subnets:
- "{{ public_subnet.subnet.id }}"
routes:
- dest: 0.0.0.0/0
gateway_id: "{{ ansibleVPC_igw.gateway_id }}"
register: rt_ansibleVPC_PublicSubnet
- name: display public route table
debug: var=rt_ansibleVPC_PublicSubnet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.