diff --git a/plugins/modules/aws_acm.py b/plugins/modules/aws_acm.py index b57618b1ac5..25581db1a39 100644 --- a/plugins/modules/aws_acm.py +++ b/plugins/modules/aws_acm.py @@ -175,7 +175,7 @@ register: cert_create - name: print ARN of cert we just created - debug: + ansible.builtin.debug: var: cert_create.certificate.arn - name: delete the cert we just created diff --git a/plugins/modules/aws_batch_compute_environment.py b/plugins/modules/aws_batch_compute_environment.py index 21eb4808f62..39ff11e2576 100644 --- a/plugins/modules/aws_batch_compute_environment.py +++ b/plugins/modules/aws_batch_compute_environment.py @@ -155,7 +155,7 @@ register: aws_batch_compute_environment_action - name: show results - debug: + ansible.builtin.debug: var: aws_batch_compute_environment_action ''' diff --git a/plugins/modules/aws_batch_job_definition.py b/plugins/modules/aws_batch_job_definition.py index 1c30d72efc5..18d0429a831 100644 --- a/plugins/modules/aws_batch_job_definition.py +++ b/plugins/modules/aws_batch_job_definition.py @@ -204,7 +204,7 @@ register: job_definition_create_result - name: show results - debug: var=job_definition_create_result + ansible.builtin.debug: var=job_definition_create_result ''' RETURN = r''' diff --git a/plugins/modules/aws_batch_job_queue.py b/plugins/modules/aws_batch_job_queue.py index e95940dbb8f..b472371eb84 100644 --- a/plugins/modules/aws_batch_job_queue.py +++ b/plugins/modules/aws_batch_job_queue.py @@ -83,7 +83,7 @@ register: batch_job_queue_action - name: show results - debug: + ansible.builtin.debug: var: batch_job_queue_action ''' diff --git a/plugins/modules/aws_s3_bucket_info.py b/plugins/modules/aws_s3_bucket_info.py index 90e07a1b62b..735bba97f74 100644 --- a/plugins/modules/aws_s3_bucket_info.py +++ b/plugins/modules/aws_s3_bucket_info.py @@ -35,7 +35,7 @@ register: result - name: List buckets - debug: + ansible.builtin.debug: msg: "{{ result['buckets'] }}" ''' diff --git a/plugins/modules/aws_ssm_parameter_store.py b/plugins/modules/aws_ssm_parameter_store.py index 82138868760..32c1df62536 100644 --- a/plugins/modules/aws_ssm_parameter_store.py +++ b/plugins/modules/aws_ssm_parameter_store.py @@ -112,7 +112,7 @@ overwrite_value: "always" - name: recommend to use with aws_ssm lookup plugin - debug: + ansible.builtin.debug: msg: "{{ lookup('amazon.aws.aws_ssm', 'hello') }}" ''' diff --git a/plugins/modules/cloudformation_exports_info.py b/plugins/modules/cloudformation_exports_info.py index d53d83bd027..8eab5325be3 100644 --- a/plugins/modules/cloudformation_exports_info.py +++ b/plugins/modules/cloudformation_exports_info.py @@ -27,7 +27,7 @@ profile: 'my_aws_profile' region: 'my_region' register: cf_exports -- debug: +- ansible.builtin.debug: msg: "{{ cf_exports }}" ''' diff --git a/plugins/modules/cloudfront_info.py b/plugins/modules/cloudfront_info.py index cc6f9472bb0..bd81ac53b54 100644 --- a/plugins/modules/cloudfront_info.py +++ b/plugins/modules/cloudfront_info.py @@ -163,7 +163,7 @@ distribution: true distribution_id: my-cloudfront-distribution-id register: result_did -- debug: +- ansible.builtin.debug: msg: "{{ result_did['cloudfront']['my-cloudfront-distribution-id'] }}" - name: Get information about a distribution using the CNAME of the cloudfront distribution. @@ -171,7 +171,7 @@ distribution: true domain_name_alias: www.my-website.com register: result_website -- debug: +- ansible.builtin.debug: msg: "{{ result_website['cloudfront']['www.my-website.com'] }}" # When the module is called as cloudfront_facts, return values are published @@ -181,13 +181,13 @@ community.aws.cloudfront_facts: distribution: true distribution_id: my-cloudfront-distribution-id -- debug: +- ansible.builtin.debug: msg: "{{ ansible_facts['cloudfront']['my-cloudfront-distribution-id'] }}" - community.aws.cloudfront_facts: distribution: true domain_name_alias: www.my-website.com -- debug: +- ansible.builtin.debug: msg: "{{ ansible_facts['cloudfront']['www.my-website.com'] }}" - name: Get all information about an invalidation for a distribution. diff --git a/plugins/modules/ec2_eip.py b/plugins/modules/ec2_eip.py index c43363e3b6d..42909d8ff36 100644 --- a/plugins/modules/ec2_eip.py +++ b/plugins/modules/ec2_eip.py @@ -137,7 +137,7 @@ register: eip - name: output the IP - debug: + ansible.builtin.debug: msg: "Allocated IP is {{ eip.public_ip }}" - name: provision new instances with ec2 @@ -162,7 +162,7 @@ register: eip - name: output the IP - debug: + ansible.builtin.debug: msg: "Allocated IP inside a VPC is {{ eip.public_ip }}" - name: allocate eip - reuse unallocated ips (if found) with FREE tag diff --git a/plugins/modules/ec2_eip_info.py b/plugins/modules/ec2_eip_info.py index c31ec738f09..553930db67a 100644 --- a/plugins/modules/ec2_eip_info.py +++ b/plugins/modules/ec2_eip_info.py @@ -44,7 +44,7 @@ instance-id: i-123456789 register: my_vm_eips -- debug: +- ansible.builtin.debug: msg: "{{ my_vm_eips.addresses | json_query(\"[?private_ip_address=='10.0.0.5']\") }}" - name: List all EIP addresses for several VMs. @@ -69,7 +69,7 @@ # Set the variable eip_alloc to the value of the first allocation_id # and set the variable my_pub_ip to the value of the first public_ip -- set_fact: +- ansible.builtin.set_fact: eip_alloc: my_vms_eips.addresses[0].allocation_id my_pub_ip: my_vms_eips.addresses[0].public_ip diff --git a/plugins/modules/ec2_elb_info.py b/plugins/modules/ec2_elb_info.py index a66d130deb1..c4b1bd67360 100644 --- a/plugins/modules/ec2_elb_info.py +++ b/plugins/modules/ec2_elb_info.py @@ -47,7 +47,7 @@ - name: Gather information about all ELBs community.aws.ec2_elb_info: register: elb_info -- debug: +- ansible.builtin.debug: msg: "{{ item.dns_name }}" loop: "{{ elb_info.elbs }}" @@ -56,7 +56,7 @@ names: frontend-prod-elb register: elb_info -- debug: +- ansible.builtin.debug: msg: "{{ elb_info.elbs.0.dns_name }}" - name: Gather information about a set of ELBs @@ -66,7 +66,7 @@ - backend-prod-elb register: elb_info -- debug: +- ansible.builtin.debug: msg: "{{ item.dns_name }}" loop: "{{ elb_info.elbs }}" diff --git a/plugins/modules/ec2_lc.py b/plugins/modules/ec2_lc.py index deb6633adeb..813bfe04cb4 100644 --- a/plugins/modules/ec2_lc.py +++ b/plugins/modules/ec2_lc.py @@ -238,7 +238,7 @@ - name: Use EBS snapshot ID for volume block: - name: Set Volume Facts - set_fact: + ansible.builtin.set_fact: volumes: - device_name: /dev/sda1 volume_size: 20 diff --git a/plugins/modules/ec2_placement_group_info.py b/plugins/modules/ec2_placement_group_info.py index 7ec7f62fd92..354d3eb3276 100644 --- a/plugins/modules/ec2_placement_group_info.py +++ b/plugins/modules/ec2_placement_group_info.py @@ -45,7 +45,7 @@ - my-other-cluster register: specific_ec2_placement_groups -- debug: +- ansible.builtin.debug: msg: "{{ specific_ec2_placement_groups | json_query(\"[?name=='my-cluster']\") }}" ''' diff --git a/plugins/modules/ec2_vpc_nat_gateway_info.py b/plugins/modules/ec2_vpc_nat_gateway_info.py index bb164a2b50b..f076d38a833 100644 --- a/plugins/modules/ec2_vpc_nat_gateway_info.py +++ b/plugins/modules/ec2_vpc_nat_gateway_info.py @@ -41,7 +41,7 @@ register: all_ngws - name: Debugging the result - debug: + ansible.builtin.debug: msg: "{{ all_ngws.result }}" - name: Get details on specific nat gateways diff --git a/plugins/modules/ec2_vpc_peering_info.py b/plugins/modules/ec2_vpc_peering_info.py index 2d577227fac..cffcf6f9aed 100644 --- a/plugins/modules/ec2_vpc_peering_info.py +++ b/plugins/modules/ec2_vpc_peering_info.py @@ -41,7 +41,7 @@ register: all_vpc_peers - name: Debugging the result - debug: + ansible.builtin.debug: msg: "{{ all_vpc_peers.result }}" - name: Get details on specific VPC peer diff --git a/plugins/modules/efs_info.py b/plugins/modules/efs_info.py index a1b310fe7bc..62fd583785d 100644 --- a/plugins/modules/efs_info.py +++ b/plugins/modules/efs_info.py @@ -63,7 +63,7 @@ - sg-4d3c2b1a register: result -- debug: +- ansible.builtin.debug: msg: "{{ result['efs'] }}" ''' diff --git a/plugins/modules/elb_application_lb_info.py b/plugins/modules/elb_application_lb_info.py index 21952633a43..796803d8c2f 100644 --- a/plugins/modules/elb_application_lb_info.py +++ b/plugins/modules/elb_application_lb_info.py @@ -58,7 +58,7 @@ names: "alb-name" region: "aws-region" register: alb_info -- debug: +- ansible.builtin.debug: var: alb_info ''' diff --git a/plugins/modules/elb_classic_lb_info.py b/plugins/modules/elb_classic_lb_info.py index 88d44ee8125..12a6a43771a 100644 --- a/plugins/modules/elb_classic_lb_info.py +++ b/plugins/modules/elb_classic_lb_info.py @@ -51,7 +51,7 @@ - community.aws.elb_classic_lb_info: register: elb_info -- debug: +- ansible.builtin.debug: msg: "{{ item.dns_name }}" loop: "{{ elb_info.elbs }}" @@ -60,7 +60,7 @@ names: frontend-prod-elb register: elb_info -- debug: +- ansible.builtin.debug: msg: "{{ elb_info.elbs.0.dns_name }}" # Gather information about a set of ELBs @@ -70,7 +70,7 @@ - backend-prod-elb register: elb_info -- debug: +- ansible.builtin.debug: msg: "{{ item.dns_name }}" loop: "{{ elb_info.elbs }}" diff --git a/plugins/modules/elb_target_info.py b/plugins/modules/elb_target_info.py index dda76f08c24..924632339de 100644 --- a/plugins/modules/elb_target_info.py +++ b/plugins/modules/elb_target_info.py @@ -50,7 +50,7 @@ register: target_info - name: save fact for later - set_fact: + ansible.builtin.set_fact: original_tgs: "{{ target_info.instance_target_groups }}" - name: Deregister instance from all target groups @@ -118,7 +118,7 @@ # instance - useful in case the playbook fails mid-run and manual # rollback is required - name: "reregistration commands: ELBv2s" - debug: + ansible.builtin.debug: msg: > aws --region {{ansible_ec2_placement_region}} elbv2 register-targets --target-group-arn {{item.target_group_arn}} diff --git a/plugins/modules/lambda_alias.py b/plugins/modules/lambda_alias.py index 2b74cdb6352..75193221b5b 100644 --- a/plugins/modules/lambda_alias.py +++ b/plugins/modules/lambda_alias.py @@ -86,7 +86,7 @@ name: myLambdaFunction register: lambda_info - name: show results - debug: + ansible.builtin.debug: msg: "{{ lambda_info['lambda_facts'] }}" # The following will set the Dev alias to the latest version ($LATEST) since version is omitted (or = 0) diff --git a/plugins/modules/lambda_event.py b/plugins/modules/lambda_event.py index e1a35220b74..6dbbfb6590b 100644 --- a/plugins/modules/lambda_event.py +++ b/plugins/modules/lambda_event.py @@ -102,7 +102,7 @@ register: event - name: Show source event - debug: + ansible.builtin.debug: var: event.lambda_stream_events ''' diff --git a/plugins/modules/lambda_facts.py b/plugins/modules/lambda_facts.py index 0d102fd7340..4c02947c998 100644 --- a/plugins/modules/lambda_facts.py +++ b/plugins/modules/lambda_facts.py @@ -69,7 +69,7 @@ query: all max_items: 20 - name: show Lambda facts - debug: + ansible.builtin.debug: var: lambda_facts ''' diff --git a/plugins/modules/lambda_info.py b/plugins/modules/lambda_info.py index b81f8521013..1e40aec4ca1 100644 --- a/plugins/modules/lambda_info.py +++ b/plugins/modules/lambda_info.py @@ -63,7 +63,7 @@ max_items: 20 register: output - name: show Lambda information - debug: + ansible.builtin.debug: msg: "{{ output['function'] }}" ''' diff --git a/plugins/modules/lambda_policy.py b/plugins/modules/lambda_policy.py index 09c74423a0d..2860e3a6540 100644 --- a/plugins/modules/lambda_policy.py +++ b/plugins/modules/lambda_policy.py @@ -120,7 +120,7 @@ register: lambda_policy_action - name: show results - debug: + ansible.builtin.debug: var: lambda_policy_action ''' diff --git a/plugins/modules/rds.py b/plugins/modules/rds.py index 87dd07f518c..e259ef757e5 100644 --- a/plugins/modules/rds.py +++ b/plugins/modules/rds.py @@ -305,7 +305,7 @@ region: us-west-2 vpc_security_groups: sg-xxx945xx -- debug: +- ansible.builtin.debug: msg: "The new db endpoint is {{ rds.instance.endpoint }}" '''