Ansible role for installing and configure dnsmasq service
Simply just use ansible-galaxy command to install
ansible-galaxy install iomarmochtar.dnsmasq
You can see all default variables in file defaults/main.yml, you can see in the example section for how it used.
- hosts: server
roles:
- role: iomarmochtar.dnsmasq
upstreams:
- 8.8.8.8
- 1.1.1.1
configs:
- mx-host: "omar.net,smtp.omar.net,10"
- mx-host: "mochtar.net,mx.mochtar.net,10"
- address: "/smtp.omar.net/192.168.1.5"
- address: "/mx.mochtar.net/192.168.1.4"
GNU GPL v3.0
Author: Imam Omar Mochtar
Email: iomarmochtar@gmail.com
Website: https://blog.mochtar.net