From a468044c0337d1a2ac0dab2ce3efc4ad766f81a3 Mon Sep 17 00:00:00 2001 From: Mitchell Riedstra Date: Tue, 16 Dec 2025 23:02:49 -0500 Subject: Rework the NSD role to support more operating systems with minimal effort and duplication --- tasks/linux.yml | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 tasks/linux.yml (limited to 'tasks/linux.yml') diff --git a/tasks/linux.yml b/tasks/linux.yml deleted file mode 100644 index 346c088..0000000 --- a/tasks/linux.yml +++ /dev/null @@ -1,36 +0,0 @@ ---- -- name: 'Install NSD [Void]' - xbps: - state: present - name: nsd - when: ansible_facts['distribution'].lower() == "void" -- name: 'Install NSD [Alpine]' - apk: - state: present - name: nsd - when: ansible_facts['distribution'].lower() == "alpine" -- name: Install nsd.conf - template: - src: nsd.conf - dest: /etc/nsd/nsd.conf -- name: Install zone files - template: - src: 'zones/{{item}}' - dest: '/etc/nsd/{{item}}.zone' - validate: 'nsd-checkzone {{item}} %s' - owner: root - group: nsd - mode: 0640 - loop: "{{nsd_zones}}" - notify: - - Restart NSD -- name: Include Alpine Linux Speicifc Tasks - include_tasks: alpine.yml - when: ansible_facts['distribution'].lower() == "alpine" -- name: Enable NSD - file: - src: /etc/sv/nsd - dest: /var/service/nsd - owner: root - group: root - state: link -- cgit v1.2.3