freeipa.ansible_freeipa.ipaclient_configure_dns_resolver (1.11.1) — module

Configure DNS resolver for IPA client

Authors: Thomas Woerner (@t-woerner)

preview | supported by community

Install collection

Install with ansible-galaxy collection install freeipa.ansible_freeipa:==1.11.1


Add to requirements.yml

  collections:
    - name: freeipa.ansible_freeipa
      version: 1.11.1

Description

Configure DNS resolver for IPA client, register files for installer

Usage examples

1
  • Hint
    Tasks should always be named using the name parameter.
# Ensure DNS nameservers and domain are configured
- freeipa.ansible_freeipa.ipaclient_configure_dns_resolver:
    nameservers: groups.ipaservers
    searchdomains: "{{ ipaserver_domain | default(ipaclient_domain) }}"
1
  • Hint
    Tasks should always be named using the name parameter.
# Ensure DNS nameservers and domain are not configured
- freeipa.ansible_freeipa.ipaclient_configure_dns_resolver:
    state: absent

Inputs

    
state:
    choices:
    - present
    - absent
    default: present
    description: The state to ensure.
    required: false
    type: str

nameservers:
    description: The nameservers, required with state:present.
    elements: str
    required: false
    type: list

searchdomains:
    description: The searchdomains, required with state:present.
    elements: str
    required: false
    type: list