Select Git revision
README-dnsforwardzone.md
README-dnsrecord.md 12.68 KiB
DNSRecord module
Description
The dnsrecord module allows management of DNS records and is as compatible as possible with the Ansible upstream ipa_dnsrecord
module, but provide some other features like multiple record management in one execution and support for more DNS record types.
Features
- DNS record management.
Supported FreeIPA Versions
FreeIPA versions 4.4.0 and up are supported by the ipadnsrecord module.
Requirements
Controller
- Ansible version: 2.8+
Node
- Supported FreeIPA version (see above)
Usage
Example inventory file
[ipaserver]
ipaserver.example.com
Example playbook to ensure an AAAA record is present:
---
- ipadnsrecord:
ipaadmin_password: SomeADMINpassword
name: host01
zone_name: example.com
record_type: 'AAAA'
record_value: '::1'
Example playbook to ensure an AAAA record is present, with a TTL of 300:
---
- ipadnsrecord:
ipaadmin_password: SomeADMINpassword
name: host01
zone_name: example.com
record_type: 'AAAA'
record_value: '::1'
record_ttl: 300
Example playbook to ensure an AAAA record is present, with a reverse PTR record: