Hi everybody,
It would be very usefull to receive public_ip from ec2_remote_facts.py
I wrote simple patch for that.
Probably we should include it to the ansible 2.2?
With best regards, Oleg
--- a/venv/lib/python2.7/site-packages/ansible/modules/extras/cloud/amazon/ec2_remote_facts.py 2016-07-28 19:32:31.000000000 +0200
+++ b/venv/lib/python2.7/site-packages/ansible/modules/extras/cloud/amazon/ec2_remote_facts.py 2016-09-15 02:13:30.000000000 +0200
@@ -112,6 +112,7 @@
'hypervisor': instance.hypervisor,
'region': instance.region.name,
'persistent': instance.persistent,
+ 'ip_address': instance.ip_address,
'private_ip_address': instance.private_ip_address,
'state': instance._state.name,
'vpc_id': instance.vpc_id,