Ansible Inventory to DNS Config
Here’s a little snippet that will use your Ansible inventory to populate dnsmasq
domain to ip rules.
File: dns-server.yml
File: austin-dns.yml
Note, this will only work if you don’t directly reference your ip address in the inventory host name. You want your inventory to look like this: