Can you elaborate on what doesn't work vs what you want?

On Wed, Aug 31, 2016 at 5:09 PM Soren Olegnowicz <soren.olegnow...@gmail.com>
wrote:

> Unfortunately, this setting does not help. Perhaps I need to run Ansible
> from within Amazon instead of locally?
>
>
> On Tuesday, August 30, 2016 at 5:21:06 AM UTC-4, Hagai Kariti wrote:
>>
>> You can set destination_variable to public_dns_name in ec2.ini (I think
>> this is the default). Amazon's DNS servers resolve the public DNS name to
>> the private IP when you're inside AWS and to the public IP when you're
>> outside.
>>
>> Does that help?
>>
>> On Tuesday, August 30, 2016 at 4:04:47 AM UTC+3, Soren Olegnowicz wrote:
>>>
>>> Hey guys I need to connect to my ec2 instances in various ways using the
>>> ec2.ini provided. Right now my I can only get my ec2.ini to connect to my
>>> instances via their private or public IP alone, but I need to connect to
>>> some instances via their private IP and some via their public. Any
>>> suggestions for introducing logic to accomplish this?
>>>
>> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Ansible Project" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/ansible-project/jfEO2I9pStM/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> ansible-project+unsubscr...@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/41a14cc3-d025-4465-9e30-6a36257a1587%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/41a14cc3-d025-4465-9e30-6a36257a1587%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAO0%3DbmEiEtb06%2BGNM_1FxO%3D_hMkFXeToY8xaeOUZFfgJjitrnA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to