# # !!! This file is managed by Ansible !!! # {% if services.dnsmasq.local_service is defined and services.dnsmasq.local_service is true %} local-service {% endif %} {% if services.dnsmasq.no_resolv is defined and services.dnsmasq.no_resolv is true %} no-resolv {% endif %} {% if services.dnsmasq.no_hosts is defined and services.dnsmasq.no_hosts is true %} no-hosts {% endif %} {% if services.dnsmasq.domain_needed is defined and services.dnsmasq.domain_needed is true %} domain-needed {% endif %} {% if services.dnsmasq.bogus_priv is defined and services.dnsmasq.bogus_priv is true %} bogus-priv {% endif %} {% if services.dnsmasq.expand_hosts is defined and services.dnsmasq.expand_hosts is true %} expand-hosts {% endif %} {% if services.dnsmasq.addn_hosts is defined %} addn-hosts={{services.dnsmasq.addn_hosts}} {% endif %} {% if services.dnsmasq.read_ethers is defined and services.dnsmasq.read_ethers is true %} read-ethers {% endif %} {% if services.dnsmasq.enable_ra is defined and services.dnsmasq.enable_ra is true %} enable-ra {% endif %} {% if services.dnsmasq.quiet_ra is defined and services.dnsmasq.quiet_ra is true %} quiet-ra {% endif %} {% for dns_server in services.dnsmasq.dns_servers %} server={{ dns_server }} {% endfor %} {% if services.dnsmasq.domain is defined %} # allow /etc/hosts and dhcp lookups for local domains local=/{{ services.dnsmasq.domain }}/ domain={{ services.dnsmasq.domain }} {% endif %} {% if services.dnsmasq.auth_ttl is defined %} auth-ttl={{ services.dnsmasq.auth_ttl }} {% endif %} {% if services.dnsmasq.auth_server is defined %} auth-server={{ services.dnsmasq.auth_server }} {% endif %} {% if services.dnsmasq.auth_zones is defined %} {% for auth_zone in services.dnsmasq.auth_zones %} auth-zone={{ auth_zone }} {% endfor %} {% endif %} {% if services.dnsmasq.addresses is defined %} {% for address in services.dnsmasq.addresses %} host-record={{ address }} {% endfor %} {% endif %} {% if services.dnsmasq.local_addresses is defined %} {% for address in services.dnsmasq.local_addresses %} address={{ address }} {% endfor %} {% endif %} {% if services.dnsmasq.dhcp is defined %} {% if services.dnsmasq.dhcp.authoritative is defined and services.dnsmasq.dhcp.authoritative is true %} dhcp-authoritative {% endif %} {% if services.dnsmasq.dhcp.rapid_commit is defined and services.dnsmasq.dhcp.rapid_commit is true %} dhcp-rapid-commit {% endif %} {% if services.dnsmasq.dhcp.sequential_ip is defined and services.dnsmasq.dhcp.sequential_ip is true %} dhcp-sequential-ip {% endif %} {% if services.dnsmasq.dhcp.ranges is defined %} {% for dhcp_range in services.dnsmasq.dhcp.ranges %} dhcp-range={{ dhcp_range }} {% endfor %} {% endif %} {% if services.dnsmasq.dhcp.options is defined %} {% for dhcp_option in services.dnsmasq.dhcp.options %} dhcp-option={{ dhcp_option}} {% endfor %} {% endif %} {% if services.dnsmasq.dhcp.hosts is defined %} {% for dhcp_host in services.dnsmasq.dhcp.hosts %} dhcp-host={{ dhcp_host }} {% endfor %} {% endif %} {% endif %} {% if services.dnsmasq.extraConfig is defined %} {{ services.dnsmasq.extraConfig }} {% endif %}