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