diff options
-rw-r--r-- | host_vars/vultr | 17 | ||||
-rw-r--r-- | 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 %} |