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,
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/b9417aac-511d-4882-bb39-17b03f044fb8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.