{% if dnsmasq_flags -%} {% for key, value in dnsmasq_flags.items() -%} {{ key }} = {{ value }} {% endfor -%} {% endif -%}