Skip to content

Ansible role adding nameserver entries to resolv.conf (ubuntu only)

Notifications You must be signed in to change notification settings

ball6847/ball6847.role.resolvconf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Ansible role adding nameserver entries to resolv.conf (ubuntu only)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published