No description
| defaults | ||
| files | ||
| handlers | ||
| meta | ||
| tasks | ||
| templates/etc | ||
| vars | ||
| LICENSE | ||
| README.md | ||
Ansible role resolv.conf (DNS)
Configure resolv.conf on Red Hat, Debian based distributions.
Requirements
- Ansible > 2.7
Role Variables
| Variable Name | Required | Description | Default Value | Type |
|---|---|---|---|---|
| resolv_nameservers | yes | A list of up to 3 nameserver IP addresses | [] | list |
| resolv_domain | no | Local domain name | "" | string |
| resolv_search | no | List of up to 6 domains to search for host-name lookup | [] | list |
| resolv_sortlist | no | List of IP-address and netmask pairs to sort addresses returned by gethostbyname. | [] | list |
| resolv_options | no | List of options to modify certain internal resolver variables. | [] | list |
Dependencies
No dependencies
Example Playbook
---
- name: "Role Invocation - resolv Example"
hosts: "all"
roles:
- role: "resolv"
resolv_nameservers:
- "8.8.8.8"
- "8.8.4.4"
resolv_domain: "oowy.lan"
resolv_search:
- "oowy.lan"
- "oowy.fr"
resolv_options:
- "timeout:2"
- "rotate"
License
Apache 2.0
Author Information
Claranet team.