dnsmasq
ansible-role-dnsmasq
This role installs and configures dnsmasq.
Requirements
Ansible 2.10 or newer.
Supported Platforms
- Debian - 11 (Bullseye)
- Debian - 12 (Bookworm)
- Ubuntu - 22.04 (Jammy Jellyfish)
- Ubuntu - 24.04 (Noble Numbat)
Role Variables
Variable | Required | Default | Choices | Comments |
---|---|---|---|---|
dnsmasq_dependencies | true | dnsmasq |
string | |
dnsmasq_conf | true | {} |
dict |
Dependencies
None
Example Playbook
- hosts: all
roles:
- role: ansible-role-dnsmasq
dnsmasq_conf:
main:
- listen-address=127.0.0.1
- bind-interfaces
cache:
- no-resolv
- server=8.8.8.8
- server=8.8.4.4
- cache-size=500
- neg-ttl=60
- domain-needed
- bogus-priv
Testing
molecule test
License
MIT
Author Information
Install
ansible-galaxy install boutetnico/ansible-role-dnsmasq
License
mit
Downloads
20
Owner
System Engineer