ypsman.resolv
ansible resolv
==============
This tool configures the resolv.conf
file, which is used for DNS nameservers and domains. By default, it uses Google's DNS servers.
Example Playbook
Here's how to use it in a playbook:
- hosts: all
roles:
- role: ypsman.resolv
resolv_dns_domain: 'mydomain.org'
resolv_searchpath: ['mydomain.local', 'mydomain.org']
resolv_options: "rotate timeout:1"
resolv_dns_server:
- 8.8.8.8
- 8.8.4.4
In this example, the playbook sets the DNS domain, the search paths, options for DNS resolution, and specifies the DNS servers to use.