Skip to content
This repository has been archived by the owner on Sep 25, 2018. It is now read-only.

kbrebanov/ansible-resolv_conf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

No Maintenance Intended

resolv_conf

Build Status

Configures /etc/resolv.conf file

Requirements

This role requires Ansible 1.9 or higher.

Role Variables

Name Default Description
resolv_conf_nameservers ['8.8.8.8', '8.8.4.4'] List of nameserver IP addresses
resolv_conf_search_domains ["{{ ansible_domain }}"] List of search domains

Dependencies

None

Example Playbook

Configure /etc/resolv.conf file with default values

- hosts: all
  roles:
    - kbrebanov.resolv_conf

Configure /etc/resolv.conf file specifying nameservers and a search domain

- hosts: all
  vars:
    resolv_conf_nameservers:
      - 8.8.4.4
      - 8.8.8.8
    resolv_conf_search_domains:
      - example.com
  roles:
    - kbrebanov.resolv_conf

License

BSD

Author Information

Kevin Brebanov

About

Ansible resolv.conf role

Resources

License

Stars

Watchers

Forks

Packages

No packages published