diff options
author | Aaron LI <aly@aaronly.me> | 2018-02-26 17:27:02 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2018-03-14 11:28:44 +0800 |
commit | c10e1524e5b67fce4d8b17b0fa5ca39aac72c465 (patch) | |
tree | 4d901258eaf250c17e3bf8022f59695bc5dd8afa /roles/dns/tasks | |
parent | ee82cab09896865cf08326d8396c7275b21f8905 (diff) | |
download | ansible-dfly-vps-c10e1524e5b67fce4d8b17b0fa5ca39aac72c465.tar.bz2 |
dns: generate nsd.conf with domains and nameservers variables
Diffstat (limited to 'roles/dns/tasks')
-rw-r--r-- | roles/dns/tasks/main.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/dns/tasks/main.yml b/roles/dns/tasks/main.yml index d6bfb2f..f414e59 100644 --- a/roles/dns/tasks/main.yml +++ b/roles/dns/tasks/main.yml @@ -68,11 +68,11 @@ path: /usr/local/etc/nsd/zones state: directory -- name: NSD - copy zone files +- name: NSD - generate zone files template: src: "zones/{{ item }}.zone.j2" dest: "/usr/local/etc/nsd/zones/{{ item }}.zone" - with_items: "{{ nsd.zones }}" + with_items: "{{ domains }}" notify: reload-nsd - name: NSD - enable and start service |