Skip to content
This repository was archived by the owner on Oct 7, 2025. It is now read-only.

Commit 0082a9b

Browse files
author
filip
committed
adjusting the route normalization task
1 parent 0a9bd07 commit 0082a9b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

roles/aws/aws_vpc_route/tasks/route.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
ansible.builtin.set_fact:
55
_aws_vpc_route_route:
66
dest: "{{ route.destination_ipv6_cidr_block if route.destination_ipv6_cidr_block is defined else route.destination_cidr_block }}"
7-
gateway_id: "{{ route.gateway_id | default(omit) }}"
8-
nat_gateway_id: "{{ route.nat_gateway_id | default(omit) }}"
9-
network_interface_id: "{{ route.network_interface_id | default(omit) }}"
10-
transit_gateway_id: "{{ route.transit_gateway_id | default(omit) }}"
11-
vpc_peering_connection_id: "{{ route.vpc_peering_connection_id | default(omit) }}"
12-
instance_id: "{{ route.instance_id | default(omit) }}"
7+
gateway_id: "{{ route.gateway_id or omit }}"
8+
nat_gateway_id: "{{ route.nat_gateway_id or omit }}"
9+
network_interface_id: "{{ route.network_interface_id or omit }}"
10+
transit_gateway_id: "{{ route.transit_gateway_id or omit }}"
11+
vpc_peering_connection_id: "{{ route.vpc_peering_connection_id or omit }}"
12+
instance_id: "{{ route.instance_id or omit }}"
1313

1414
- name: Add route to the list.
1515
ansible.builtin.set_fact:

0 commit comments

Comments
 (0)