mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-03-26 21:33:05 +00:00
Adding an A/AAAA record to a host fails if there's not a reverse zone set that the resulting PTR record can be added to, even if create_reverse is false. Changing the rule to create the reverse record fixes the issue. Fixes: #1381 Signed-off-by: Rafael Guterres Jeffman <rjeffman@redhat.com>
24 lines
1.1 KiB
YAML
24 lines
1.1 KiB
YAML
---
|
|
# Set common vars and facts for test.
|
|
- name: Set IPv4 address prefix.
|
|
ansible.builtin.set_fact:
|
|
ipv4_prefix: "{{ ansible_facts['default_ipv4'].address.split('.')[:-1] |
|
|
join('.') }}"
|
|
ipv4_reverse: "{{ ansible_facts['default_ipv4'].address.split('.')[:-1] |
|
|
reverse |
|
|
join('.') }}"
|
|
# The 'external_ipv4_address' represents an IP address that
|
|
# is not part of the expected CIDR zones managed by the IPA
|
|
# deployment. It is used to test the cases were the the reverse
|
|
# DNS zone must not be available in the embedded DNS nameserver.
|
|
external_ipv4_address: "1.2.3.4"
|
|
|
|
- name: Set zone prefixes.
|
|
ansible.builtin.set_fact:
|
|
testzone: 'testzone.test'
|
|
safezone: 'safezone.test'
|
|
zone_ipv6_reverse_workaround: "d.f.ip6.arpa."
|
|
zone_prefix_reverse_24: "{{ ipv4_reverse.split('.')[:] | join('.') }}.in-addr.arpa."
|
|
zone_prefix_reverse_16: "{{ ipv4_reverse.split('.')[1:] | join('.') }}.in-addr.arpa."
|
|
zone_prefix_reverse_8: "{{ ipv4_reverse.split('.')[2:] | join('.') }}.in-addr.arpa."
|