{% for record in dns_records_main %} update add {{ record.name.ljust(30) }} {{ record.ttl }} A {{ record.ip }} {% endfor %} send