Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions plugins/modules/validate_route_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ def __init__(self):

def validate_vpc(self, src_vpc_id, src_private_ips, dest_vpc_id, dest_subnet_cidrs):
# Check whether resources are in the same VPC. If not, Cidr cannot overlap
# Test
if not (dest_vpc_id[0] == src_vpc_id[0]):
for dest_cidr in dest_subnet_cidrs:
for ip_addr in src_private_ips:
Expand Down
3 changes: 2 additions & 1 deletion roles/connectivity_troubleshooter_validate/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
---
# tasks file for roles/connectivity_troubleshooter_validate
# test

- name: Run 'cloud.aws_troubleshooting.connectivity_troubleshooter_validate' role
block:
- name: Fail when the IPv4 address of the resource you want to connect is not defined
ansible.builtin.fail:
msg: The IPv4 address of the resource you want to connect to must be defined as connectivity_troubleshooter_validate_destination_ip
when: connectivity_troubleshooter_validate_destination_ip is not defined
when: connectivity_troubleshooter_validate_destination_ip is defined

- name: Fail when the port number you want to connect to on the destination resource is not defined
ansible.builtin.fail:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
Name: "{{ instance_name }}-1"
register: __create_ec2_instance_1

- name: Deploy EC2 instance 2
- name: Deploy EC2 instance no 2
amazon.aws.ec2_instance:
instance_type: t2.micro
image_id: "{{ image_id }}"
Expand Down
Loading