Skip to content

Commit

Permalink
Update aws.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
vitabaks committed Oct 12, 2024
1 parent ebbaab0 commit a1c9434
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions automation/roles/cloud-resources/tasks/aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,12 @@
region: "{{ server_location }}"
filters:
vpc-id: "{{ aws_vpc.vpc.id }}"
register: route_table_info
register: aws_route_table_info

- name: "AWS: Update the main route table"
amazon.aws.ec2_vpc_route_table:
route_table_id: "{{ route_table_info.route_tables[0].route_table_id }}"
vpc_id: "{{ aws_vpc.vpc.id }}"
route_table_id: "{{ aws_route_table_info.route_tables[0].route_table_id }}"
routes:
- dest: 0.0.0.0/0
gateway_id: "{{ aws_igw.gateway_id }}"
Expand Down

0 comments on commit a1c9434

Please sign in to comment.