diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2019-02-23 22:28:01 -0500 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2019-02-23 22:28:01 -0500 |
| commit | 5296caea8edef6525488071442d5525cf32a8c2e (patch) | |
| tree | 8f18d86aab54761a6e0c97a930f911ee0175739b /tasks/main.yml | |
| download | nsd-5296caea8edef6525488071442d5525cf32a8c2e.tar.gz nsd-5296caea8edef6525488071442d5525cf32a8c2e.tar.xz | |
Import from main repo
Diffstat (limited to 'tasks/main.yml')
| -rw-r--r-- | tasks/main.yml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tasks/main.yml b/tasks/main.yml new file mode 100644 index 0000000..ae218fc --- /dev/null +++ b/tasks/main.yml @@ -0,0 +1,27 @@ +--- +- name: Install NSD + xbps: + state: present + name: nsd +- name: Install nsd.conf + template: + src: nsd.conf + dest: /etc/nsd/nsd.conf +- name: Install zone files + template: + src: '{{inventory_hostname}}/zones/{{item}}' + dest: '/etc/nsd/{{item}}.zone' + validate: '/usr/bin/nsd-checkzone {{item}} %s' + owner: root + group: nsd + mode: 0640 + loop: "{{nsd_zones}}" + notify: + - Restart NSD +- name: Enable NSD + file: + src: /etc/sv/nsd + dest: /var/service/nsd + owner: root + group: root + state: link |
