diff options
| author | Mitchell Riedstra <mitch@riedstra.dev> | 2025-12-16 23:02:49 -0500 |
|---|---|---|
| committer | Mitchell Riedstra <mitch@riedstra.dev> | 2025-12-16 23:02:49 -0500 |
| commit | a468044c0337d1a2ac0dab2ce3efc4ad766f81a3 (patch) | |
| tree | ca7d1523a6b43e14dc4fb6d2cd15966774faa237 /tasks/linux.yml | |
| parent | 256ed8e7653b1963e1cc2b6d30aa636e9766d07b (diff) | |
| download | nsd-a468044c0337d1a2ac0dab2ce3efc4ad766f81a3.tar.gz nsd-a468044c0337d1a2ac0dab2ce3efc4ad766f81a3.tar.xz | |
Rework the NSD role to support more operating systems with minimal effort and duplication
Diffstat (limited to 'tasks/linux.yml')
| -rw-r--r-- | tasks/linux.yml | 36 |
1 files changed, 0 insertions, 36 deletions
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 |
