From 96c0f9793d5b4e52b4197b7d7a0ab826a1b19a68 Mon Sep 17 00:00:00 2001 From: abikouo Date: Tue, 15 Oct 2024 16:14:32 +0200 Subject: [PATCH] update meta/runtime.yml, modules and tests --- meta/runtime.yml | 12 ++-- plugins/modules/ec2_vpc_nacl.py | 13 ++-- plugins/modules/ec2_vpc_nacl_info.py | 7 ++- .../ec2_vpc_nacl/tasks/ingress_and_egress.yml | 18 +++--- .../targets/ec2_vpc_nacl/tasks/ipv6.yml | 14 ++--- .../targets/ec2_vpc_nacl/tasks/main.yml | 8 +-- .../targets/ec2_vpc_nacl/tasks/subnet_ids.yml | 18 +++--- .../ec2_vpc_nacl/tasks/subnet_names.yml | 14 ++--- .../targets/ec2_vpc_nacl/tasks/tags.yml | 62 +++++++++---------- 9 files changed, 85 insertions(+), 81 deletions(-) diff --git a/meta/runtime.yml b/meta/runtime.yml index 94614615f1e..1aaa2179e15 100644 --- a/meta/runtime.yml +++ b/meta/runtime.yml @@ -60,6 +60,8 @@ action_groups: - ec2_vpc_endpoint_service_info - ec2_vpc_igw - ec2_vpc_igw_info + - ec2_vpc_nacl + - ec2_vpc_nacl_info - ec2_vpc_nat_gateway - ec2_vpc_nat_gateway_info - ec2_vpc_net @@ -162,14 +164,14 @@ plugin_routing: rds_param_group: redirect: amazon.aws.rds_instance_param_group deprecation: - removal_version: 10.0.0 - warning_text: >- - rds_param_group has been renamed to rds_instance_param_group. - Please update your tasks. + removal_version: 10.0.0 + warning_text: >- + rds_param_group has been renamed to rds_instance_param_group. + Please update your tasks. lookup: aws_ssm: # Deprecation for this alias should not *start* prior to 2024-09-01 redirect: amazon.aws.ssm_parameter aws_secret: # Deprecation for this alias should not *start* prior to 2024-09-01 - redirect: amazon.aws.secretsmanager_secret + redirect: amazon.aws.secretsmanager_secret \ No newline at end of file diff --git a/plugins/modules/ec2_vpc_nacl.py b/plugins/modules/ec2_vpc_nacl.py index bc92003d17c..0539d7bda05 100644 --- a/plugins/modules/ec2_vpc_nacl.py +++ b/plugins/modules/ec2_vpc_nacl.py @@ -8,6 +8,7 @@ module: ec2_vpc_nacl short_description: create and delete Network ACLs version_added: 1.0.0 +version_added_collection: community.aws description: - Read the AWS documentation for Network ACLS U(https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_ACLs.html) @@ -88,7 +89,7 @@ # Complete example to create and delete a network ACL # that allows SSH, HTTP and ICMP in, and all traffic out. - name: "Create and associate production DMZ network ACL with DMZ subnets" - community.aws.ec2_vpc_nacl: + amazon.aws.ec2_vpc_nacl: vpc_id: vpc-12345678 name: prod-dmz-nacl region: ap-southeast-2 @@ -111,7 +112,7 @@ state: 'present' - name: "Remove the ingress and egress rules - defaults to deny all" - community.aws.ec2_vpc_nacl: + amazon.aws.ec2_vpc_nacl: vpc_id: vpc-12345678 name: prod-dmz-nacl region: ap-southeast-2 @@ -125,20 +126,20 @@ state: present - name: "Remove the NACL subnet associations and tags" - community.aws.ec2_vpc_nacl: + amazon.aws.ec2_vpc_nacl: vpc_id: 'vpc-12345678' name: prod-dmz-nacl region: ap-southeast-2 state: present - name: "Delete nacl and subnet associations" - community.aws.ec2_vpc_nacl: + amazon.aws.ec2_vpc_nacl: vpc_id: vpc-12345678 name: prod-dmz-nacl state: absent - name: "Delete nacl by its id" - community.aws.ec2_vpc_nacl: + amazon.aws.ec2_vpc_nacl: nacl_id: acl-33b4ee5b state: absent """ @@ -166,7 +167,7 @@ from ansible_collections.amazon.aws.plugins.module_utils.ec2 import ensure_ec2_tags from ansible_collections.amazon.aws.plugins.module_utils.ec2 import replace_network_acl_association -from ansible_collections.community.aws.plugins.module_utils.modules import AnsibleCommunityAWSModule as AnsibleAWSModule +from ansible_collections.amazon.aws.plugins.module_utils.modules import AnsibleAWSModule # VPC-supported IANA protocol numbers # http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml diff --git a/plugins/modules/ec2_vpc_nacl_info.py b/plugins/modules/ec2_vpc_nacl_info.py index 9e0bc4e7f05..143076b2e17 100644 --- a/plugins/modules/ec2_vpc_nacl_info.py +++ b/plugins/modules/ec2_vpc_nacl_info.py @@ -8,6 +8,7 @@ --- module: ec2_vpc_nacl_info version_added: 1.0.0 +version_added_collection: community.aws short_description: Gather information about Network ACLs in an AWS VPC description: - Gather information about Network ACLs in an AWS VPC @@ -44,13 +45,13 @@ # Gather information about all Network ACLs: - name: Get All NACLs - community.aws.ec2_vpc_nacl_info: + amazon.aws.ec2_vpc_nacl_info: region: us-west-2 register: all_nacls # Retrieve default Network ACLs: - name: Get Default NACLs - community.aws.ec2_vpc_nacl_info: + amazon.aws.ec2_vpc_nacl_info: region: us-west-2 filters: 'default': 'true' @@ -114,7 +115,7 @@ from ansible_collections.amazon.aws.plugins.module_utils.tagging import boto3_tag_list_to_ansible_dict from ansible_collections.amazon.aws.plugins.module_utils.transformation import ansible_dict_to_boto3_filter_list -from ansible_collections.community.aws.plugins.module_utils.modules import AnsibleCommunityAWSModule as AnsibleAWSModule +from ansible_collections.amazon.aws.plugins.module_utils.modules import AnsibleAWSModule # VPC-supported IANA protocol numbers # http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml diff --git a/tests/integration/targets/ec2_vpc_nacl/tasks/ingress_and_egress.yml b/tests/integration/targets/ec2_vpc_nacl/tasks/ingress_and_egress.yml index 432aaf3ba99..584a9bcec0f 100644 --- a/tests/integration/targets/ec2_vpc_nacl/tasks/ingress_and_egress.yml +++ b/tests/integration/targets/ec2_vpc_nacl/tasks/ingress_and_egress.yml @@ -2,7 +2,7 @@ - name: Test Ingress and Egress rules block: - name: Create ingress and egress rules using subnet IDs - community.aws.ec2_vpc_nacl: + amazon.aws.ec2_vpc_nacl: vpc_id: "{{ vpc_id }}" name: "{{ nacl_name }}" subnets: "{{ subnet_ids }}" @@ -24,7 +24,7 @@ - nacl.nacl_id.startswith('acl-') - name: Get network ACL facts - community.aws.ec2_vpc_nacl_info: + amazon.aws.ec2_vpc_nacl_info: nacl_ids: - "{{ nacl.nacl_id }}" register: nacl_facts @@ -39,7 +39,7 @@ # ============================================================ - name: Remove an ingress rule - community.aws.ec2_vpc_nacl: + amazon.aws.ec2_vpc_nacl: vpc_id: "{{ vpc_id }}" name: "{{ nacl_name }}" subnets: "{{ subnet_ids }}" @@ -60,7 +60,7 @@ - nacl.nacl_id.startswith('acl-') - name: Get network ACL facts - community.aws.ec2_vpc_nacl_info: + amazon.aws.ec2_vpc_nacl_info: nacl_ids: - "{{ nacl.nacl_id }}" register: nacl_facts @@ -75,7 +75,7 @@ # ============================================================ - name: Remove the egress rule - community.aws.ec2_vpc_nacl: + amazon.aws.ec2_vpc_nacl: vpc_id: "{{ vpc_id }}" name: "{{ nacl_name }}" subnets: "{{ subnet_ids }}" @@ -95,7 +95,7 @@ - nacl.nacl_id.startswith('acl-') - name: Get network ACL facts - community.aws.ec2_vpc_nacl_info: + amazon.aws.ec2_vpc_nacl_info: nacl_ids: - "{{ nacl.nacl_id }}" register: nacl_facts @@ -110,7 +110,7 @@ # ============================================================ - name: Add egress rules - community.aws.ec2_vpc_nacl: + amazon.aws.ec2_vpc_nacl: vpc_id: "{{ vpc_id }}" name: "{{ nacl_name }}" subnets: "{{ subnet_ids }}" @@ -132,7 +132,7 @@ - nacl.nacl_id.startswith('acl-') - name: Get network ACL facts - community.aws.ec2_vpc_nacl_info: + amazon.aws.ec2_vpc_nacl_info: nacl_ids: - "{{ nacl.nacl_id }}" register: nacl_facts @@ -147,7 +147,7 @@ # ============================================================ - name: Remove the network ACL - community.aws.ec2_vpc_nacl: + amazon.aws.ec2_vpc_nacl: vpc_id: "{{ vpc_id }}" name: "{{ nacl_name }}" state: absent diff --git a/tests/integration/targets/ec2_vpc_nacl/tasks/ipv6.yml b/tests/integration/targets/ec2_vpc_nacl/tasks/ipv6.yml index 2113fb4aa9c..5ac3819723e 100644 --- a/tests/integration/targets/ec2_vpc_nacl/tasks/ipv6.yml +++ b/tests/integration/targets/ec2_vpc_nacl/tasks/ipv6.yml @@ -4,7 +4,7 @@ # ============================================================ - name: Create ingress and egress rules using subnet names - community.aws.ec2_vpc_nacl: + amazon.aws.ec2_vpc_nacl: vpc_id: "{{ vpc_ipv6_id }}" name: "{{ nacl_name }}" subnets: @@ -30,7 +30,7 @@ nacl_id: "{{ nacl.nacl_id }}" - name: Add ipv6 entries - community.aws.ec2_vpc_nacl: + amazon.aws.ec2_vpc_nacl: vpc_id: "{{ vpc_ipv6_id }}" name: "{{ nacl_name }}" subnets: @@ -56,7 +56,7 @@ - nacl.nacl_id == nacl_id - name: Get network ACL facts (test that it works with ipv6 entries) - community.aws.ec2_vpc_nacl_info: + amazon.aws.ec2_vpc_nacl_info: nacl_ids: - "{{ nacl_id }}" register: nacl_facts @@ -69,7 +69,7 @@ - nacl_facts.nacls[0].egress | length == 2 - name: Purge ingress entries - community.aws.ec2_vpc_nacl: + amazon.aws.ec2_vpc_nacl: vpc_id: "{{ vpc_ipv6_id }}" name: "{{ nacl_name }}" subnets: @@ -90,7 +90,7 @@ - nacl.nacl_id == nacl_id - name: Purge egress entries - community.aws.ec2_vpc_nacl: + amazon.aws.ec2_vpc_nacl: vpc_id: "{{ vpc_ipv6_id }}" name: "{{ nacl_name }}" subnets: @@ -108,7 +108,7 @@ - nacl.changed - name: Get network ACL facts (test that removed entries are gone) - community.aws.ec2_vpc_nacl_info: + amazon.aws.ec2_vpc_nacl_info: nacl_ids: - "{{ nacl_id }}" register: nacl_facts @@ -123,7 +123,7 @@ always: - name: Remove network ACL - community.aws.ec2_vpc_nacl: + amazon.aws.ec2_vpc_nacl: vpc_id: "{{ vpc_ipv6_id }}" name: "{{ nacl_name }}" state: absent diff --git a/tests/integration/targets/ec2_vpc_nacl/tasks/main.yml b/tests/integration/targets/ec2_vpc_nacl/tasks/main.yml index 445161ccd82..0225056152b 100644 --- a/tests/integration/targets/ec2_vpc_nacl/tasks/main.yml +++ b/tests/integration/targets/ec2_vpc_nacl/tasks/main.yml @@ -11,7 +11,7 @@ # ============================================================ - name: Test without any parameters - community.aws.ec2_vpc_nacl: + amazon.aws.ec2_vpc_nacl: register: result ignore_errors: true @@ -22,7 +22,7 @@ - "result.msg == 'one of the following is required: name, nacl_id'" - name: Get network ACL info without any parameters - community.aws.ec2_vpc_nacl_info: + amazon.aws.ec2_vpc_nacl_info: register: nacl_facts - name: Assert we don't error @@ -31,7 +31,7 @@ - nacl_facts is succeeded - name: Get network ACL info with invalid ID - community.aws.ec2_vpc_nacl_info: + amazon.aws.ec2_vpc_nacl_info: nacl_ids: - 'acl-000000000000' register: nacl_facts @@ -139,7 +139,7 @@ always: - name: Remove network ACL - community.aws.ec2_vpc_nacl: + amazon.aws.ec2_vpc_nacl: vpc_id: "{{ vpc_id }}" name: "{{ nacl_name }}" state: absent diff --git a/tests/integration/targets/ec2_vpc_nacl/tasks/subnet_ids.yml b/tests/integration/targets/ec2_vpc_nacl/tasks/subnet_ids.yml index 3a367e84f89..5aaed181bef 100644 --- a/tests/integration/targets/ec2_vpc_nacl/tasks/subnet_ids.yml +++ b/tests/integration/targets/ec2_vpc_nacl/tasks/subnet_ids.yml @@ -1,7 +1,7 @@ # ============================================================ - name: Create ingress and egress rules using subnet IDs - community.aws.ec2_vpc_nacl: + amazon.aws.ec2_vpc_nacl: vpc_id: "{{ vpc_id }}" name: "{{ nacl_name }}" subnets: "{{ subnet_ids }}" @@ -27,7 +27,7 @@ - nacl.nacl_id.startswith('acl-') - name: Get network ACL facts - community.aws.ec2_vpc_nacl_info: + amazon.aws.ec2_vpc_nacl_info: nacl_ids: - "{{ nacl_id }}" register: nacl_facts @@ -46,7 +46,7 @@ # ============================================================ - name: Test idempotence - community.aws.ec2_vpc_nacl: + amazon.aws.ec2_vpc_nacl: vpc_id: "{{ vpc_id }}" name: "{{ nacl_name }}" subnets: "{{ subnet_ids }}" @@ -69,7 +69,7 @@ - nacl.nacl_id.startswith('acl-') - name: Get network ACL facts - community.aws.ec2_vpc_nacl_info: + amazon.aws.ec2_vpc_nacl_info: nacl_ids: - "{{ nacl.nacl_id }}" register: nacl_facts_idem @@ -82,7 +82,7 @@ # ============================================================ - name: Remove a subnet from the network ACL - community.aws.ec2_vpc_nacl: + amazon.aws.ec2_vpc_nacl: vpc_id: "{{ vpc_id }}" name: "{{ nacl_name }}" subnets: @@ -108,7 +108,7 @@ - nacl.nacl_id == nacl_id - name: Get network ACL facts - community.aws.ec2_vpc_nacl_info: + amazon.aws.ec2_vpc_nacl_info: nacl_id: - "{{ nacl.nacl_id }}" register: nacl_facts @@ -127,7 +127,7 @@ # ============================================================ - name: Remove the network ACL - community.aws.ec2_vpc_nacl: + amazon.aws.ec2_vpc_nacl: vpc_id: "{{ vpc_id }}" name: "{{ nacl_name }}" state: absent @@ -139,7 +139,7 @@ - nacl.changed - name: Re-remove the network ACL by name (test idempotency) - community.aws.ec2_vpc_nacl: + amazon.aws.ec2_vpc_nacl: vpc_id: "{{ vpc_id }}" name: "{{ nacl_name }}" state: absent @@ -151,7 +151,7 @@ - nacl is not changed - name: Re-remove the network ACL by id (test idempotency) - community.aws.ec2_vpc_nacl: + amazon.aws.ec2_vpc_nacl: vpc_id: "{{ vpc_id }}" nacl_id: "{{ nacl_id }}" state: absent diff --git a/tests/integration/targets/ec2_vpc_nacl/tasks/subnet_names.yml b/tests/integration/targets/ec2_vpc_nacl/tasks/subnet_names.yml index dc44fef804a..78831afface 100644 --- a/tests/integration/targets/ec2_vpc_nacl/tasks/subnet_names.yml +++ b/tests/integration/targets/ec2_vpc_nacl/tasks/subnet_names.yml @@ -1,7 +1,7 @@ # ============================================================ - name: Create ingress and egress rules using subnet names - community.aws.ec2_vpc_nacl: + amazon.aws.ec2_vpc_nacl: vpc_id: "{{ vpc_id }}" name: "{{ nacl_name }}" subnets: "{{ subnet_names }}" @@ -27,7 +27,7 @@ - nacl.nacl_id.startswith('acl-') - name: Get network ACL facts - community.aws.ec2_vpc_nacl_info: + amazon.aws.ec2_vpc_nacl_info: nacl_ids: - "{{ nacl_id }}" register: nacl_facts @@ -45,7 +45,7 @@ # ============================================================ - name: Test idempotence - community.aws.ec2_vpc_nacl: + amazon.aws.ec2_vpc_nacl: vpc_id: "{{ vpc_id }}" name: "{{ nacl_name }}" subnets: "{{ subnet_names }}" @@ -68,7 +68,7 @@ - nacl.nacl_id.startswith('acl-') - name: Get network ACL facts - community.aws.ec2_vpc_nacl_info: + amazon.aws.ec2_vpc_nacl_info: nacl_ids: - "{{ nacl.nacl_id }}" register: nacl_facts_idem @@ -81,7 +81,7 @@ # ============================================================ - name: Remove a subnet from the network ACL - community.aws.ec2_vpc_nacl: + amazon.aws.ec2_vpc_nacl: vpc_id: "{{ vpc_id }}" name: "{{ nacl_name }}" subnets: @@ -107,7 +107,7 @@ - nacl.nacl_id.startswith('acl-') - name: Get network ACL facts - community.aws.ec2_vpc_nacl_info: + amazon.aws.ec2_vpc_nacl_info: nacl_ids: - "{{ nacl.nacl_id }}" register: nacl_facts @@ -125,7 +125,7 @@ # ============================================================ - name: Remove the network ACL - community.aws.ec2_vpc_nacl: + amazon.aws.ec2_vpc_nacl: vpc_id: "{{ vpc_id }}" name: "{{ nacl_name }}" state: absent diff --git a/tests/integration/targets/ec2_vpc_nacl/tasks/tags.yml b/tests/integration/targets/ec2_vpc_nacl/tasks/tags.yml index 0e69ce760ac..556ab45494a 100644 --- a/tests/integration/targets/ec2_vpc_nacl/tasks/tags.yml +++ b/tests/integration/targets/ec2_vpc_nacl/tasks/tags.yml @@ -32,7 +32,7 @@ # ============================================================ - name: Create a network ACL using subnet IDs - community.aws.ec2_vpc_nacl: + amazon.aws.ec2_vpc_nacl: vpc_id: "{{ vpc_id }}" name: "{{ nacl_name }}" subnets: "{{ subnet_ids }}" @@ -50,7 +50,7 @@ nacl_id: '{{ nacl.nacl_id }}' - name: Get network ACL facts - community.aws.ec2_vpc_nacl_info: + amazon.aws.ec2_vpc_nacl_info: nacl_ids: - "{{ nacl_id }}" register: nacl_info @@ -64,7 +64,7 @@ # ============================================================ - name: Add tags (check mode) - community.aws.ec2_vpc_nacl: + amazon.aws.ec2_vpc_nacl: vpc_id: "{{ vpc_id }}" name: "{{ nacl_name }}" subnets: "{{ subnet_ids }}" @@ -80,7 +80,7 @@ - nacl.nacl_id == nacl_id - name: Add tags - community.aws.ec2_vpc_nacl: + amazon.aws.ec2_vpc_nacl: vpc_id: "{{ vpc_id }}" name: "{{ nacl_name }}" subnets: "{{ subnet_ids }}" @@ -89,7 +89,7 @@ register: nacl - name: Get network ACL facts - community.aws.ec2_vpc_nacl_info: + amazon.aws.ec2_vpc_nacl_info: nacl_ids: - "{{ nacl.nacl_id }}" register: nacl_info @@ -103,7 +103,7 @@ - nacl_info.nacls[0].tags == ( first_tags | combine(name_tags) ) - name: Add tags - IDEMPOTENCY (check mode) - community.aws.ec2_vpc_nacl: + amazon.aws.ec2_vpc_nacl: vpc_id: "{{ vpc_id }}" name: "{{ nacl_name }}" subnets: "{{ subnet_ids }}" @@ -119,7 +119,7 @@ - nacl.nacl_id == nacl_id - name: Add tags - IDEMPOTENCY - community.aws.ec2_vpc_nacl: + amazon.aws.ec2_vpc_nacl: vpc_id: "{{ vpc_id }}" name: "{{ nacl_name }}" subnets: "{{ subnet_ids }}" @@ -128,7 +128,7 @@ register: nacl - name: Get network ACL facts - community.aws.ec2_vpc_nacl_info: + amazon.aws.ec2_vpc_nacl_info: nacl_ids: - "{{ nacl.nacl_id }}" register: nacl_info @@ -144,7 +144,7 @@ # ============================================================ - name: Get network ACL facts by filter - community.aws.ec2_vpc_nacl_info: + amazon.aws.ec2_vpc_nacl_info: filters: "tag:Name": "{{ nacl_name }}" register: nacl_info @@ -159,7 +159,7 @@ # ============================================================ - name: Modify tags with purge (check mode) - community.aws.ec2_vpc_nacl: + amazon.aws.ec2_vpc_nacl: vpc_id: "{{ vpc_id }}" name: "{{ nacl_name }}" subnets: "{{ subnet_ids }}" @@ -175,7 +175,7 @@ - nacl.nacl_id == nacl_id - name: Modify tags with purge - community.aws.ec2_vpc_nacl: + amazon.aws.ec2_vpc_nacl: vpc_id: "{{ vpc_id }}" name: "{{ nacl_name }}" subnets: "{{ subnet_ids }}" @@ -184,7 +184,7 @@ register: nacl - name: Get network ACL facts - community.aws.ec2_vpc_nacl_info: + amazon.aws.ec2_vpc_nacl_info: nacl_ids: - "{{ nacl.nacl_id }}" register: nacl_info @@ -198,7 +198,7 @@ - nacl_info.nacls[0].tags == ( second_tags | combine(name_tags) ) - name: Modify tags with purge - IDEMPOTENCY (check mode) - community.aws.ec2_vpc_nacl: + amazon.aws.ec2_vpc_nacl: vpc_id: "{{ vpc_id }}" name: "{{ nacl_name }}" subnets: "{{ subnet_ids }}" @@ -214,7 +214,7 @@ - nacl.nacl_id == nacl_id - name: Modify tags with purge - IDEMPOTENCY - community.aws.ec2_vpc_nacl: + amazon.aws.ec2_vpc_nacl: vpc_id: "{{ vpc_id }}" name: "{{ nacl_name }}" subnets: "{{ subnet_ids }}" @@ -223,7 +223,7 @@ register: nacl - name: Get network ACL facts - community.aws.ec2_vpc_nacl_info: + amazon.aws.ec2_vpc_nacl_info: nacl_ids: - "{{ nacl.nacl_id }}" register: nacl_info @@ -239,7 +239,7 @@ # ============================================================ - name: Modify tags without purge (check mode) - community.aws.ec2_vpc_nacl: + amazon.aws.ec2_vpc_nacl: vpc_id: "{{ vpc_id }}" name: "{{ nacl_name }}" subnets: "{{ subnet_ids }}" @@ -256,7 +256,7 @@ - nacl.nacl_id == nacl_id - name: Modify tags without purge - community.aws.ec2_vpc_nacl: + amazon.aws.ec2_vpc_nacl: vpc_id: "{{ vpc_id }}" name: "{{ nacl_name }}" subnets: "{{ subnet_ids }}" @@ -266,7 +266,7 @@ register: nacl - name: Get network ACL facts - community.aws.ec2_vpc_nacl_info: + amazon.aws.ec2_vpc_nacl_info: nacl_ids: - "{{ nacl.nacl_id }}" register: nacl_info @@ -280,7 +280,7 @@ - nacl_info.nacls[0].tags == ( final_tags | combine(name_tags) ) - name: Modify tags without purge - IDEMPOTENCY (check mode) - community.aws.ec2_vpc_nacl: + amazon.aws.ec2_vpc_nacl: vpc_id: "{{ vpc_id }}" name: "{{ nacl_name }}" subnets: "{{ subnet_ids }}" @@ -297,7 +297,7 @@ - nacl.nacl_id == nacl_id - name: Modify tags without purge - IDEMPOTENCY - community.aws.ec2_vpc_nacl: + amazon.aws.ec2_vpc_nacl: vpc_id: "{{ vpc_id }}" name: "{{ nacl_name }}" subnets: "{{ subnet_ids }}" @@ -307,7 +307,7 @@ register: nacl - name: Get network ACL facts - community.aws.ec2_vpc_nacl_info: + amazon.aws.ec2_vpc_nacl_info: nacl_ids: - "{{ nacl.nacl_id }}" register: nacl_info @@ -323,7 +323,7 @@ # ============================================================ - name: No change to tags without setting tags (check mode) - community.aws.ec2_vpc_nacl: + amazon.aws.ec2_vpc_nacl: vpc_id: "{{ vpc_id }}" name: "{{ nacl_name }}" subnets: "{{ subnet_ids }}" @@ -338,7 +338,7 @@ - nacl.nacl_id == nacl_id - name: No change to tags without setting tags - community.aws.ec2_vpc_nacl: + amazon.aws.ec2_vpc_nacl: vpc_id: "{{ vpc_id }}" name: "{{ nacl_name }}" subnets: "{{ subnet_ids }}" @@ -346,7 +346,7 @@ register: nacl - name: Get network ACL facts - community.aws.ec2_vpc_nacl_info: + amazon.aws.ec2_vpc_nacl_info: nacl_ids: - "{{ nacl.nacl_id }}" register: nacl_info @@ -362,7 +362,7 @@ # ============================================================ - name: Remove non name tags (check mode) - community.aws.ec2_vpc_nacl: + amazon.aws.ec2_vpc_nacl: vpc_id: "{{ vpc_id }}" name: "{{ nacl_name }}" subnets: "{{ subnet_ids }}" @@ -378,7 +378,7 @@ - nacl.nacl_id == nacl_id - name: Remove non name tags - community.aws.ec2_vpc_nacl: + amazon.aws.ec2_vpc_nacl: vpc_id: "{{ vpc_id }}" name: "{{ nacl_name }}" subnets: "{{ subnet_ids }}" @@ -387,7 +387,7 @@ register: nacl - name: Get network ACL facts - community.aws.ec2_vpc_nacl_info: + amazon.aws.ec2_vpc_nacl_info: nacl_ids: - "{{ nacl.nacl_id }}" register: nacl_info @@ -401,7 +401,7 @@ - nacl_info.nacls[0].tags == name_tags - name: Remove non name tags - IDEMPOTENCY (check mode) - community.aws.ec2_vpc_nacl: + amazon.aws.ec2_vpc_nacl: vpc_id: "{{ vpc_id }}" name: "{{ nacl_name }}" subnets: "{{ subnet_ids }}" @@ -417,7 +417,7 @@ - nacl.nacl_id == nacl_id - name: Remove non name tags - IDEMPOTENCY - community.aws.ec2_vpc_nacl: + amazon.aws.ec2_vpc_nacl: vpc_id: "{{ vpc_id }}" name: "{{ nacl_name }}" subnets: "{{ subnet_ids }}" @@ -426,7 +426,7 @@ register: nacl - name: Get network ACL facts - community.aws.ec2_vpc_nacl_info: + amazon.aws.ec2_vpc_nacl_info: nacl_ids: - "{{ nacl.nacl_id }}" register: nacl_info @@ -443,7 +443,7 @@ always: - name: Remove the network ACL - community.aws.ec2_vpc_nacl: + amazon.aws.ec2_vpc_nacl: vpc_id: "{{ vpc_id }}" name: "{{ nacl_name }}" state: absent