Skip to content

Commit

Permalink
explicitly pass region where needed (#20)
Browse files Browse the repository at this point in the history
- Solves: [BUG]: AWS region configured value disregarded #18 from cisco-open/ansible-collection-sdwan
  • Loading branch information
przsus authored Aug 19, 2024
1 parent 53834b0 commit 9515671
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace: cisco
name: sdwan_deployment
version: 0.2.0
version: 0.2.1
readme: README.md
authors:
- Arkadiusz Cichon <[email protected]>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

- name: Gather information about any VPC subnet within VPC with ID
amazon.aws.ec2_vpc_subnet_info:
region: "{{ aws_region }}"
filters:
vpc-id: "{{ aws_discovered_vpc.id }}"
register: aws_subnet_info
Expand Down
1 change: 1 addition & 0 deletions roles/aws_teardown/tasks/ec2_instance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# EC2 Instances
- name: Gather facts about all instances in VPC
amazon.aws.ec2_instance_info:
region: "{{ aws_region }}"
filters:
vpc-id: "{{ aws_vpc_id }}"
instance-state-name: ["pending", "running", "shutting-down", "stopping", "stopped"]
Expand Down
1 change: 1 addition & 0 deletions roles/aws_teardown/tasks/ec2_specific_instance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
# EC2 Instances
- name: Gather facts about all instances in VPC
amazon.aws.ec2_instance_info:
region: "{{ aws_region }}"
filters:
vpc-id: "{{ aws_vpc_id }}"
"tag:Creator": "{{ aws_tag_creator }}"
Expand Down
1 change: 1 addition & 0 deletions roles/common/tasks/aws_existing_instances.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

- name: Gather facts about all instances in VPC
amazon.aws.ec2_instance_info:
region: "{{ aws_region }}"
filters:
vpc-id: "{{ ec2_vpc_net_info.vpcs[0].id }}"
instance-state-name: ["pending", "running", "shutting-down", "stopping", "stopped"]
Expand Down

0 comments on commit 9515671

Please sign in to comment.