Skip to content

Commit

Permalink
Ansible 2.3 specific bug fixes and deprecation warning fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhailadvani committed Jun 30, 2017
1 parent c8303de commit 758325e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/create_routing_tables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
Name: PublicRouteTable
vpc_id: "{{created_vpc.vpc.id}}"
with_items: "{{vpc.subnets}}"
when: '"{{item.gateway}}" is defined and "{{item.gateway}}" == "igw"'
when: 'item.gateway is defined and item.gateway == "igw"'

- name: Create private route table with NAT gateway route and associate subnets to it
ec2_vpc_route_table:
Expand All @@ -29,7 +29,7 @@
Name: PrivateRouteTableWithNAT
vpc_id: "{{created_vpc.vpc.id}}"
with_items: "{{vpc.subnets}}"
when: '"{{vpc.nat_gateway_subnet_name}} is defined and {{item.gateway}}" is defined and "{{item.gateway}}" == "nat"'
when: 'vpc.nat_gateway_subnet_name is defined and item.gateway is defined and item.gateway == "nat"'

- name: Create private route table and associate subnets to it
ec2_vpc_route_table:
Expand Down

0 comments on commit 758325e

Please sign in to comment.