Configures /etc/resolv.conf file
This role requires Ansible 1.9 or higher.
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 |
None
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
BSD
Kevin Brebanov