123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- # Dnsmasq configuration
- # {{ ansible_managed }}
- {% if dnsmasq_listen_address is defined %}
- listen-address={{ dnsmasq_listen_address }}
- {% endif %}
- {% if dnsmasq_interface is defined %}
- interface={{ dnsmasq_interface }}
- {% endif %}
- {% if dnsmasq_port is defined %}
- port={{ dnsmasq_port }}
- {% endif %}
- {% if dnsmasq_domain_needed %}
- domain-needed
- {% endif %}
- {% if dnsmasq_bogus_priv %}
- bogus-priv
- {% endif %}
- {% if dnsmasq_resolv_file is defined %}
- resolv-file={{ dnsmasq_resolv_file }}
- {% endif %}
- {% if dnsmasq_addn_hosts is defined %}
- addn-hosts={{ dnsmasq_addn_hosts }}
- {% endif %}
- {% if dnsmasq_expand_hosts %}
- expand-hosts
- {% endif %}
- {% if dnsmasq_domain is defined %}
- domain={{ dnsmasq_domain }}
- {% endif %}
- {% if dnsmasq_no_resolv is defined %}
- no-resolv
- {% endif %}
- {% if dnsmasq_upstream_servers is defined %}
- {% if dnsmasq_upstream_servers is iterable %}
- {% for host in dnsmasq_upstream_servers %}
- server={{ host }}
- {% endfor %}
- {% else %}
- server={{ dnsmasq_upstream_servers }}
- {% endif %}
- {% endif %}
- {% if dnsmasq_force_address is defined %}
- {% if dnsmasq_force_address is iterable %}
- {% for address in dnsmasq_force_address %}
- address={{ address }}
- {% endfor %}
- {% endif %}
- {% endif %}
- conf-dir=/etc/dnsmasq.d
|