aboutsummaryrefslogtreecommitdiffstats
path: root/roles/rc/tasks/rc_alpine.yml
diff options
context:
space:
mode:
authorbinary <me@rgoncalves.se>2020-11-15 17:26:32 +0100
committerbinary <me@rgoncalves.se>2020-11-15 17:26:32 +0100
commitaea6b114e050545ccc8b953c579d53c9158e238b (patch)
tree7cbeb2ad790638e433c21f1452dded1588949d2e /roles/rc/tasks/rc_alpine.yml
parent5bcecbf08db7013ba4de12e492961e2cba6e6b8a (diff)
downloadinfrastructure-aea6b114e050545ccc8b953c579d53c9158e238b.tar.gz
I'm so lazy so ignore this cimment this time pls
Diffstat (limited to 'roles/rc/tasks/rc_alpine.yml')
-rw-r--r--roles/rc/tasks/rc_alpine.yml21
1 files changed, 21 insertions, 0 deletions
diff --git a/roles/rc/tasks/rc_alpine.yml b/roles/rc/tasks/rc_alpine.yml
new file mode 100644
index 0000000..7d35528
--- /dev/null
+++ b/roles/rc/tasks/rc_alpine.yml
@@ -0,0 +1,21 @@
+
+# openrc ~~ tasks/main.yml
+
+---
+
+- name: Generate rc script for desired service
+ template:
+ src: rc_alpine.j2
+ dest: "{{ rc_alpine_dir }}/{{ rc_name }}"
+
+- file:
+ path: "{{ rc_alpine_dir }}/{{ rc_name }}"
+ owner: "root"
+ group: "{{ group_root }}"
+ mode: "0755"
+
+- service:
+ name: "{{ rc_name }}"
+ state: started
+ enabled: true
+
remember that computers suck.