Example I currently have in place:
- name: Set up Internal Subnet route table
ec2_vpc_route_table:
vpc_id: "{{ vpc.vpc_id }}"
region: "{{ aws_region }}"
subnets:
- "{{ subnet_internal }}"
routes:
instance_id: "{{ nat.instance[0]id }}"
when: nat|changed
tags:
- vpcsetup