diff --git a/plugins/modules/ec2_placement_group.py b/plugins/modules/ec2_placement_group.py index ccdd7d54785..3cdb5be219e 100644 --- a/plugins/modules/ec2_placement_group.py +++ b/plugins/modules/ec2_placement_group.py @@ -75,10 +75,8 @@ community.aws.ec2_placement_group: name: my-cluster state: absent - """ - RETURN = r""" placement_group: description: Placement group attributes @@ -97,7 +95,6 @@ description: PG strategy type: str sample: "cluster" - """ try: diff --git a/plugins/modules/ec2_placement_group_info.py b/plugins/modules/ec2_placement_group_info.py index 75cbc72585c..05b37488cfe 100644 --- a/plugins/modules/ec2_placement_group_info.py +++ b/plugins/modules/ec2_placement_group_info.py @@ -39,14 +39,13 @@ - name: List two placement groups. community.aws.ec2_placement_group_info: names: - - my-cluster - - my-other-cluster + - my-cluster + - my-other-cluster register: specific_ec2_placement_groups - ansible.builtin.debug: msg: > {{ specific_ec2_placement_groups | json_query("[?name=='my-cluster']") }} - """ @@ -68,7 +67,6 @@ description: PG strategy type: str sample: "cluster" - """ try: