mirror of
https://github.com/famedly/ansible-collection-base
synced 2024-11-10 06:24:17 +00:00
fix(dns): dont set host ip if a target has only one type of IP
Previously, the role would set the host IP if a target would only define an IPv4 address (f.ex.) and set the IPv6 address to the host IP, which can be wrong.
This commit is contained in:
parent
750a95b8f1
commit
faf1f0bd90
1 changed files with 2 additions and 2 deletions
|
@ -25,7 +25,7 @@
|
|||
and ((
|
||||
item[1].target is defined
|
||||
and item[1].target.ipv4 is defined)
|
||||
or dns_host_ipv4 is defined)
|
||||
or (dns_host_ipv4 is defined and item[1].target is undefined))
|
||||
and (item[1].only is undefined or item[1].only == item[0])
|
||||
|
||||
- name: Set AAAA records
|
||||
|
@ -41,7 +41,7 @@
|
|||
and ((
|
||||
item[1].target is defined
|
||||
and item[1].target.ipv6 is defined)
|
||||
or dns_host_ipv6 is defined)
|
||||
or (dns_host_ipv6 is defined and item[1].target is undefined ))
|
||||
and (item[1].only is undefined or item[1].only == item[0])
|
||||
|
||||
- name: Set CNAME records
|
||||
|
|
Loading…
Reference in a new issue