first commit
This commit is contained in:
commit
04d35ca0a3
6 changed files with 118 additions and 0 deletions
18
roles/bind/templates/zone.j2
Normal file
18
roles/bind/templates/zone.j2
Normal file
|
@ -0,0 +1,18 @@
|
|||
$ORIGIN {{ item.key }}.
|
||||
$TTL 300
|
||||
|
||||
@ IN SOA {{ bind_nameservers | first }}. noc.{{ item.key }} (
|
||||
{{ ansible_date_time.epoch }} ; serial
|
||||
7200 ; refresh
|
||||
3600 ; retry
|
||||
1209600 ; expire
|
||||
3600 ; min
|
||||
)
|
||||
|
||||
{% for ns in bind_nameservers %}
|
||||
@ IN NS {{ ns }}{{ '.' if not ns.endswith('.') else '' }}
|
||||
{% endfor %}
|
||||
|
||||
{% for record in item.value -%}
|
||||
{{ record.name }} IN {{ record.type }} {{ record.value }}
|
||||
{% endfor %}
|
Loading…
Add table
Add a link
Reference in a new issue