Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 924 Bytes

README.md

File metadata and controls

44 lines (30 loc) · 924 Bytes

Ansible Role : ball6847.role.resolvconf

Add nameserver entries to resolv.conf

Supported Operating System

Ubuntu

Installation

ansible-galaxy install git+https://github.com/ball6847/ball6847.role.resolvconf.git,master

or by requirements.yml then do ansible-galaxy install -r requirements.yml

- src: https://github.com/ball6847/ball6847.role.resolvconf.git
  version: master

Playbook Example

- name: "Setup resolv.conf"
  hosts: all
  roles:
    - ball6847.role.resolvconf

Variables

resolv_nameserver: ["8.8.8.8", "8.8.4.4"]

List of nameserver to be appended to resolv.conf, default to Google Public DNS.

resolv_file_location: /etc/resolvconf/resolv.conf.d/head

Location of resolv.conf, default to /etc/resolvconf/resolv.conf.d/head which is a good place for ubuntu.