Select Git revision
netcheck.md
-
Spencer Smith authoredSpencer Smith authored
README-dnsconfig.md 3.04 KiB
DNSConfig module
Description
The dnsconfig module allows to modify global DNS configuration.
Features
- Global DNS configuration
Supported FreeIPA Versions
FreeIPA versions 4.4.0 and up are supported by the ipadnsconfig module.
Requirements
Controller
- Ansible version: 2.8+
Node
- Supported FreeIPA version (see above)
Usage
Example inventory file
[ipaserver]
ipaserver.test.local
Example playbook to set global DNS configuration:
---
- name: Playbook to handle global DNS configuration
hosts: ipaserver
become: true
tasks:
# Set dnsconfig.
- ipadnsconfig:
forwarders:
- ip_address: 8.8.4.4
- ip_address: 2001:4860:4860::8888
port: 53
forward_policy: only
allow_sync_ptr: yes
Example playbook to ensure a global forwarder, with a custom port, is absent:
---
- name: Playbook to handle global DNS configuration
hosts: ipaserver
become: true
tasks:
# Ensure global forwarder with a custom port is absent.
- ipadnsconfig:
forwarders:
- ip_address: 2001:4860:4860::8888
port: 53
state: absent
Example playbook to disable global forwarders: