blackstar257.resolv
Ansible Role: resolv
This role sets up the /etc/resolv.conf
file.
Requirements
You need Ansible version 1.9 or higher.
Role Variables
Name | Default | Description |
---|---|---|
resolv_conf_nameservers | ["1.1.1.1", "1.0.0.1"] | List of IP addresses for nameservers |
resolv_conf_search_domains | ["{{ ansible_domain }}"] | List of search domains |
resolv_conf_options | ["rotate"] | Options for domain searches |
Dependencies
No additional dependencies.
Example Playbook
To configure the /etc/resolv.conf
file with the default values:
- hosts: all
roles:
- blackstar257.resolv
To configure the /etc/resolv.conf
file with specific 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
Installa
ansible-galaxy install blackstar257.resolv
Licenza
bsd-2-clause
Download
1.3k
Proprietario