dns/master: Moved zone files into directory per zone

wip
Felix Stupp 5 years ago
parent 93891c25a5
commit 69026d8d27
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -2,9 +2,9 @@
domain: "example.com" domain: "example.com"
domain_prefix: "{{ dns_zones_directory }}/{{ domain }}" domain_directory: "{{ dns_zones_directory }}/{{ domain }}"
configuration_file: "{{ domain_prefix }}.conf" configuration_file: "{{ domain_directory }}/zone.conf"
database_file: "{{ domain_prefix }}.db" database_file: "{{ domain_directory }}/zone.db"
main_nameserver_domain: "ns1.{{ domain }}." main_nameserver_domain: "ns1.{{ domain }}."
responsible_mail_name: "admin.{{ 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 }} - name: Store database of zone {{ domain }}
template: template:
src: zone.db src: zone.db

Loading…
Cancel
Save