diff options
author | Aaron LI <aly@aaronly.me> | 2018-03-02 09:07:15 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2018-03-14 11:35:07 +0800 |
commit | 562731165ec849bf9644b9bff0f2d198ecc7f37c (patch) | |
tree | 645d0b1920998c0000004aee58ec0b4ab9f2c154 | |
parent | c6ff8399ef89f8970e64c3189f2602f77fc988df (diff) | |
download | ansible-dfly-vps-562731165ec849bf9644b9bff0f2d198ecc7f37c.tar.bz2 |
var: update domains and nsd.conf.j2
-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 %} |