No description
Find a file
2020-04-19 10:58:55 +02:00
defaults first commit 2020-04-19 10:58:55 +02:00
files first commit 2020-04-19 10:58:55 +02:00
handlers first commit 2020-04-19 10:58:55 +02:00
meta first commit 2020-04-19 10:58:55 +02:00
tasks first commit 2020-04-19 10:58:55 +02:00
templates/etc first commit 2020-04-19 10:58:55 +02:00
vars first commit 2020-04-19 10:58:55 +02:00
LICENSE first commit 2020-04-19 10:58:55 +02:00
README.md first commit 2020-04-19 10:58:55 +02:00

Ansible role resolv.conf (DNS)

Configure resolv.conf on Red Hat, Debian based distributions.

Requirements

  • Ansible > 2.7

Role Variables

Variable Name Required Description Default Value Type
resolv_nameservers yes A list of up to 3 nameserver IP addresses [] list
resolv_domain no Local domain name "" string
resolv_search no List of up to 6 domains to search for host-name lookup [] list
resolv_sortlist no List of IP-address and netmask pairs to sort addresses returned by gethostbyname. [] list
resolv_options no List of options to modify certain internal resolver variables. [] list

Dependencies

No dependencies

Example Playbook

---
- name: "Role Invocation - resolv Example"
  hosts: "all"
  roles:
    - role: "resolv"
      resolv_nameservers:
        - "8.8.8.8"
        - "8.8.4.4"
      resolv_domain: "oowy.lan"
      resolv_search:
        - "oowy.lan"
        - "oowy.fr"
      resolv_options:
        - "timeout:2"
        - "rotate"

License

Apache 2.0

Author Information

Claranet team.