diff --git a/lib/ansible/modules/extras/cloud/amazon/ec2_lc_find.py b/lib/ansible/modules/extras/cloud/amazon/ec2_lc_find.py index f18bdfb42b..e5463e4ce8 100644 --- a/lib/ansible/modules/extras/cloud/amazon/ec2_lc_find.py +++ b/lib/ansible/modules/extras/cloud/amazon/ec2_lc_find.py @@ -184,7 +184,7 @@ def find_launch_configs(client, module): 'security_groups': lc['SecurityGroups'], 'kernel_id': lc['KernelId'], 'ram_disk_id': lc['RamdiskId'], - 'associate_public_address': lc['AssociatePublicIpAddress'], + 'associate_public_address': lc.get('AssociatePublicIpAddress', False), } results.append(data)