Use hostvars to get ansible_default_ipv6
I think this is missing picking this up from hostvars, so always assumes ipv4. Change-Id: I65929a87f864701ac07966a6b0d9ca9225da5145
This commit is contained in:
parent
da1b0f9b67
commit
a282af81ac
@ -14,8 +14,8 @@
|
||||
# routable; combine these checks into this fact.
|
||||
- name: Check for IPv6
|
||||
when:
|
||||
- ansible_default_ipv6 is defined
|
||||
- ansible_default_ipv6.address is defined
|
||||
- hostvars[inventory_hostname]['ansible_default_ipv6'] is defined
|
||||
- hostvars[inventory_hostname]['ansible_default_ipv6']['address'] is defined
|
||||
set_fact:
|
||||
unbound_use_ipv6: True
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user