summaryrefslogtreecommitdiff
path: root/tasks/alpine.yml
diff options
context:
space:
mode:
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