hudecof.resolv
resolv
This role allows users to set up and modify the /etc/resolv.conf file. It will also create an Ansible facts file at /etc/ansible/facts.d/resolv.fact
.
Requirements
- Ansible version: 1.4 or higher
Role Variables
For more details, refer to man resolv.conf
.
resolv_file
: This is the path to /etc/resolv.conf. Keep this unchanged unless you are sure about what you are doing.resolv_domain
: The domain entry in /etc/resolv.conf, defaults to null.resolv_search
: The search entry in /etc/resolv.conf, defaults to an empty list.resolv_nameserver
: The nameserver entry in /etc/resolv.conf, defaults to the Google Public DNS service.resolv_sortlist
: The sortlist entry in /etc/resolv.conf, defaults to an empty list.resolv_options
: The options entry in /etc/resolv.conf, defaults to [rotate].
Dependencies
None
Example Playbook
- hosts: all
roles:
- role: hudecof.resolv
License
BSD
Author Information
Peter Hudec
Installa
ansible-galaxy install hudecof.resolv
Licenza
Unknown
Download
2k
Proprietario