@ -2,9 +2,9 @@
domain: "example.com"
domain_prefix: "{{ dns_zones_directory }}/{{ domain }}"
configuration_file: "{{ domain_prefix }}.conf"
database_file: "{{ domain_prefix }}.db"
domain_directory: "{{ dns_zones_directory }}/{{ domain }}"
configuration_file: "{{ domain_directory }}/zone.conf"
database_file: "{{ domain_directory }}/zone.db"
main_nameserver_domain: "ns1.{{ domain }}."
responsible_mail_name: "admin.{{ domain }}."
@ -1,5 +1,13 @@
---
- name: Create zone directory
file:
path: "{{ domain_directory }}"
state: directory
owner: root
group: root
mode: "u=rwx,g=rx"
- name: Store database of zone {{ domain }}
template:
src: zone.db