Skip to content
Snippets Groups Projects
Select Git revision
  • 9fa1873a65fe078472f580878878ca2981d35563
  • master default protected
  • v2.28.0
  • v2.27.0
  • v2.25.1
  • v2.24.3
  • v2.26.0
  • v2.24.2
  • v2.25.0
  • v2.24.1
  • v2.22.2
  • v2.23.3
  • v2.24.0
  • v2.23.2
  • v2.23.1
  • v2.23.0
  • v2.22.1
  • v2.22.0
  • v2.21.0
  • v2.20.0
  • v2.19.1
  • v2.18.2
22 results

netcheck.md

Blame
  • 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: