resolv
ROLE dginhoux.resolv
DESCRIPTION
This ansible role configure DNS resolver.
It can be used to configure both legacy /etc/resolv.conf
or systemd-resolvd
.
REQUIREMENTS
SUPPORTED PLATFORMS
Platform | Versions |
---|---|
Debian | all |
EL | all |
Fedora | all |
Ubuntu | all |
ANSIBLE VERSION
Ansible >= 2.13
DEPENDENCIES
None.
INSTALLATION
ANSIBLE GALAXY
ansible-galaxy install dginhoux.resolv
GIT
git clone https://github.com/dginhoux/ansible_role.resolv dginhoux.resolv
USAGE
EXAMPLE PLAYBOOK
- name: Playbook
hosts: all
tasks:
- name: Start role dginhoux.resolv
ansible.builtin.include_role:
name: dginhoux.resolv
VARIABLES
DEFAULT VARIABLES
Defaults variables defined in defaults/main.yml
EXAMPLES VARIABLES
resolv_mode: legacy
# resolv_mode: resolved
resolv_nameservers:
- 192.168.175.10
- 192.168.175.11
- 192.168.175.12
- 192.168.175.13
resolv_search:
- infra.ginhoux.net
- ginhoux.net
DEFAULT OS SPECIFIC VARIABLES
Those variables files are located in vars/*.yml
are used to handle OS differences.
One of theses is loaded dynamically during role runtime using the include_vars
module and set OS specifics variable's.
NOT USED BY THIS ROLE
AUTHOR
Dany GINHOUX - https://github.com/dginhoux
LICENSE
MIT
About
This ansible role configure DNS resolver. It can be used to configure both legacy `/etc/resolv.conf` or `systemd-resolvd`.
Install
ansible-galaxy install dginhoux/ansible_role.resolv
License
mit
Downloads
13
Owner
Open source systems engineer