summaryrefslogtreecommitdiff
path: root/tasks/alpine.yml
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2019-09-14 16:03:11 -0400
committerMitch Riedstra <mitch@riedstra.us>2019-09-14 16:03:11 -0400
commitd48f939b0ea5c2d4a32ed1d0fab11ade549c5a49 (patch)
treed318e8dc197842b478e4b028248d527bd629ac81 /tasks/alpine.yml
parentc2ead0c3d4f6845b52767073eceb56446e2023d7 (diff)
downloadnsd-d48f939b0ea5c2d4a32ed1d0fab11ade549c5a49.tar.gz
nsd-d48f939b0ea5c2d4a32ed1d0fab11ade549c5a49.tar.xz
Support Alpine Linux
Diffstat (limited to 'tasks/alpine.yml')
-rw-r--r--tasks/alpine.yml24
1 files changed, 24 insertions, 0 deletions
diff --git a/tasks/alpine.yml b/tasks/alpine.yml
new file mode 100644
index 0000000..7b73870
--- /dev/null
+++ b/tasks/alpine.yml
@@ -0,0 +1,24 @@
+- name: Install Runit service directory
+ file:
+ state: directory
+ path: /etc/sv/nsd
+ mode: '0755'
+- name: Install Runit service command
+ template:
+ src: run.j2
+ dest: /etc/sv/nsd/run
+ mode: '755'
+- name: Install supervise symlink
+ file:
+ state: link
+ force: yes
+ src: /run/supervise.nsd
+ dest: /etc/sv/nsd/supervise
+ follow: false
+- name: Enable NSD service
+ file:
+ state: link
+ force: yes
+ src: /etc/sv/nsd
+ dest: /var/service/nsd
+ follow: false