diff --git a/.ansible-sign/sha256sum.txt b/.ansible-sign/sha256sum.txt index 3189c70..4b7bfa6 100644 --- a/.ansible-sign/sha256sum.txt +++ b/.ansible-sign/sha256sum.txt @@ -17,8 +17,8 @@ d38d5b606954eef22a54eecc796d7d49e65a4a09459f743abca1451871795d0c roles/aws_opt_ 9ca94921ccf52e9a5e2a437c855fdf10e0fa9689f66b02aceacb4ff477648e0d roles/aws_opt_in_stop/tasks/main.yml b8c2121806926f58faa4e46eb3a6481271f99804c07e8c54013303cffabe2ce8 roles/aws_opt_in_stop/tasks/stop_ec2.yml 4cb7ea6a459bb3d191fbe3b9fbb52bc6dbfe31e1b76adabf7b5c9e0ccf0b4f94 roles/aws_retrieve_info/defaults/main.yml -a426eb8fbffc99ade4cdce996e6c18d2cec0572632ea5ec3be9cf4af9d03831b roles/aws_retrieve_info/tasks/main.yml -589b37c25262ef29faaf469dcedc9008803b2a1a1c8e63e77c4645785ffdbca3 roles/aws_retrieve_info/tasks/retrieve_info.yml +c4e600e0ed85b1abf7b410e67236976012c357493d83617b5d87524870b1e912 roles/aws_retrieve_info/tasks/main.yml +f2df193b78b604897b39be047539df7ded090bb8a5836154ee921491f44bb7a9 roles/aws_retrieve_info/tasks/retrieve_info.yml 6c8b0dca0627067f90cf42f2eb4909022d5460bb7326949d98ce33c0232844b3 roles/aws_schedule_parking/tasks/main.yml 030b09eb3b997831369b4928ba145b5e5530999259ae60fc613e8ac17d92a812 roles/build_report_aws/README.md 85a58f5ab2fe784d4da58faa8e806d596b715dd2e956e5d24c1880bcbcbd3825 roles/build_report_aws/defaults/main.yml diff --git a/.ansible-sign/sha256sum.txt.sig b/.ansible-sign/sha256sum.txt.sig index e084ebf..047524e 100644 --- a/.ansible-sign/sha256sum.txt.sig +++ b/.ansible-sign/sha256sum.txt.sig @@ -1,14 +1,14 @@ -----BEGIN PGP SIGNATURE----- -iQGzBAABCAAdFiEE/bJvyFHKKJdaZDOLTiIiIXrUDNEFAmVuBGEACgkQTiIiIXrU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QDi0G07ORofCuMBWiRLLyeGr11M4E65mpT0DxxMFmbtB +RxeDsPv2 +=GZ87 -----END PGP SIGNATURE----- diff --git a/roles/aws_retrieve_info/tasks/main.yml b/roles/aws_retrieve_info/tasks/main.yml index 68133d1..23ebfec 100644 --- a/roles/aws_retrieve_info/tasks/main.yml +++ b/roles/aws_retrieve_info/tasks/main.yml @@ -1,8 +1,15 @@ --- +- name: Get all regions + amazon.aws.aws_region_info: + region: "us-east-2" + register: allregions + - name: Loop over all ec2 regions ansible.builtin.include_tasks: file: retrieve_info.yml - loop: "{{ ec2_regions }}" + loop: "{{ allregions.regions }}" + loop_control: + label: "{{ item.region_name }}" - name: Grab boto version ansible.builtin.pip: diff --git a/roles/aws_retrieve_info/tasks/retrieve_info.yml b/roles/aws_retrieve_info/tasks/retrieve_info.yml index 7550f71..42803f2 100644 --- a/roles/aws_retrieve_info/tasks/retrieve_info.yml +++ b/roles/aws_retrieve_info/tasks/retrieve_info.yml @@ -1,19 +1,19 @@ --- - name: Retrieve vpc information for {{ item }} amazon.aws.ec2_vpc_net_info: - region: "{{ item }}" + region: "{{ item.region_name }}" register: vpc_info delegate_to: localhost - name: Retrieve info for ec2 instances amazon.aws.ec2_instance_info: - region: "{{ item }}" + region: "{{ item.region_name }}" register: ec2_instance_info delegate_to: localhost - name: Retrieve information about Internet Gateways IGWs amazon.aws.ec2_vpc_igw_info: - region: "{{ item }}" + region: "{{ item.region_name }}" register: igw_info delegate_to: localhost