Skip to content

lifeofguenter/ansible-role-resolvconf

This branch is 4 commits ahead of, 20 commits behind ahuffman/ansible-resolv:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

85bfa20 · Jul 17, 2023

History

7 Commits
Jul 17, 2023
Jan 4, 2022
Jul 17, 2023
Jul 17, 2023
Jan 4, 2022
Jul 17, 2023
Jan 4, 2022
Jul 17, 2023
Jul 17, 2023
Jul 17, 2023
Jan 4, 2022
Jan 4, 2022
Jul 17, 2023

Repository files navigation

lifeofguenter.resolvconf

An Ansible role to configure /etc/resolv.conf

Role Variables

Defaults

  • resolv_nameservers: '' A list of up to 3 nameservers

  • resolv_domain: '' Local domain name

  • resolv_search: '' List of up to 6 domains to search for host-name lookup

  • resolv_sortlist: '' List of IP-address and netmask pairs to sort addresses returned by gethostbyname.

  • resolv_options: '' List of options to modify certain internal resolver variables.

Example Playbook

- hosts: all
  vars:
    resolv_nameservers:
      - 1.1.1.1
      - 8.8.8.8
    resolv_domain: foo.org
    resolv_search:
      - foo.bar
      - foobar.com
    resolv_options:
      - timeout:2
      - rotate
  roles:
    - lifeofguenter.resolvconf

License

MIT