From 562731165ec849bf9644b9bff0f2d198ecc7f37c Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Fri, 2 Mar 2018 09:07:15 +0800 Subject: var: update domains and nsd.conf.j2 --- host_vars/vultr | 17 +++++++++++++++-- roles/dns/templates/nsd.conf.j2 | 2 +- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/host_vars/vultr b/host_vars/vultr index b9f2db7..154ffac 100644 --- a/host_vars/vultr +++ b/host_vars/vultr @@ -4,6 +4,8 @@ ansible_ssh_port: 8864 ansible_python_interpreter: /usr/local/bin/python2.7 network: + hostname: vultr + domain: liwt.net interface: vtnet0 ipv4: address: 45.77.201.74 @@ -14,8 +16,19 @@ network: prefixlen: 64 domains: - - 233233.xyz - - 1314233.xyz + - name: liwt.net + sub: + - mail + - www + - git + - name: 233233.xyz + sub: + - www + - g + - zw + - name: 1314233.xyz + sub: + - www nameservers: - name: afraid diff --git a/roles/dns/templates/nsd.conf.j2 b/roles/dns/templates/nsd.conf.j2 index 0777bef..8ace470 100644 --- a/roles/dns/templates/nsd.conf.j2 +++ b/roles/dns/templates/nsd.conf.j2 @@ -127,7 +127,7 @@ pattern: # {% for domain in domains %} zone: - name: "{{ domain }}" + name: "{{ domain.name }}" include-pattern: "stealth_zones" {% endfor %} -- cgit v1.2.2