esolitos.resolv
Ansible Resolv
Based on: ypsman/ansible-resolv
This tool manages the configuration of /etc/resolv.conf
, which is used for setting DNS Nameservers and Domains.
Example Playbook
- hosts: all
roles:
- role: ypsman.resolv
resolv_dns_domain: 'mydomain.org'
resolv_searchpath: ['mydomain.local', 'mydomain.org']
resolv_options:
- 'rotate'
- 'timeout:2'
resolv_dns_server:
- 8.8.8.8
- 8.8.4.4
This example shows how to use the Ansible role to configure DNS settings for different hosts. It specifies the domain name, search paths, options like rotating servers and timeouts, along with the DNS servers to use.
Informazioni sul progetto
config resolv.conf, DNS Nameserver and Domain
Installa
ansible-galaxy install esolitos.resolv
Licenza
Unknown
Download
301
Proprietario