Off the top of my head:
1. Do the IPv4 and IPv6 addresses have different hostnames in DNS? If
so, use the hostname for the address that's usable.
2. In the ansible machine's .ssh/config file, you can enter something
like this:
HOST problem-hostname
AddressFamily inet
According to my man page for ssh_config, "inet" is IPv4 and "inet6" is IPv6.
-Greg
On Mon, Jan 12, 2015 at 4:04 PM, John Oliver <[email protected]> wrote:
> I've run into a minor problem where one of my hosts has an AAAA record for
> an address assigned via DHCP6, but it isn't acquiring that address. I can
> connect via the IPv4 address just fine. I'm looking for a switch to tell
> ansible / ansible-playbook to force a connection over one protocol so I
> don't have to come up with some lower-level hack, forget about it, and have
> it cause another problem tomorrow :-)
>
> --
> 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/2eff39ce-0f31-4d36-9a29-58f8bf37d5ca%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/2eff39ce-0f31-4d36-9a29-58f8bf37d5ca%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 [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/CAPdwyX6dmBhsmqRzyFz3Lj_w%2BCQ%2B2Ss0w5Li6hFjckmAeX0qUg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.