resolv
Ansible Role: resolv
Configures /etc/resolv.conf
Requirements
This role requires Ansible 1.9 or higher.
Role Variables
Name | Default | Description |
---|---|---|
resolv_conf_nameservers | ["1.1.1.1", "1.0.0.1"] | List of nameserver IP addresses |
resolv_conf_search_domains | ["{{ ansible_domain }}"] | List of search domains |
resolv_conf_options | ["rotate"] | List of search domains |
Dependencies
None
Example Playbook
Configure /etc/resolv.conf file with default values
- hosts: all
roles:
- blackstar257.resolv
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:
- google.com
roles:
- blackstar257.resolv
License
BSD
Author Information
Kevin Brebanov Forked by Blackstar
Install
ansible-galaxy install blackstar257/ansible-resolv
License
bsd-2-clause
Downloads
1272
Owner