From 393ddc16faeeb0162271922d32f4aaf7120a15ce Mon Sep 17 00:00:00 2001 From: Alex Lee Date: Sun, 17 Jan 2016 14:01:09 -0800 Subject: [PATCH] adding public ip address --- lib/ansible/modules/extras/cloud/amazon/ec2_remote_facts.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/modules/extras/cloud/amazon/ec2_remote_facts.py b/lib/ansible/modules/extras/cloud/amazon/ec2_remote_facts.py index 55c00910b7d..792840c07f7 100644 --- a/lib/ansible/modules/extras/cloud/amazon/ec2_remote_facts.py +++ b/lib/ansible/modules/extras/cloud/amazon/ec2_remote_facts.py @@ -128,6 +128,7 @@ def get_instance_info(instance): 'region': instance.region.name, 'persistent': instance.persistent, 'private_ip_address': instance.private_ip_address, + 'public_ip_adress': instance.ip_address, 'state': instance._state.name, 'vpc_id': instance.vpc_id, 'block_device_mapping': bdm_dict,