aboutsummaryrefslogtreecommitdiffstats
path: root/roles/rc/defaults
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2021-12-15 18:21:17 +0000
committerRomain Gonçalves <me@rgoncalves.se>2021-12-15 21:39:50 +0000
commit2927544ce379f607670768cc61252039c627058a (patch)
tree216d9faab9f92e30db21a5f56954ab977b059730 /roles/rc/defaults
parent46113df6b183c392a016053c29c694d65d5a9cfb (diff)
downloadrules-2927544ce379f607670768cc61252039c627058a.tar.gz
roles: Add rc for service file creation
Supports openrc and rc for Alpine and OpenBSD
Diffstat (limited to 'roles/rc/defaults')
-rw-r--r--roles/rc/defaults/main.yml9
-rw-r--r--roles/rc/defaults/os_alpine.yml1
-rw-r--r--roles/rc/defaults/os_openbsd.yml1
3 files changed, 11 insertions, 0 deletions
diff --git a/roles/rc/defaults/main.yml b/roles/rc/defaults/main.yml
new file mode 100644
index 0000000..f189142
--- /dev/null
+++ b/roles/rc/defaults/main.yml
@@ -0,0 +1,9 @@
+rc_dir: null
+
+rc_name: null
+rc_user: null
+rc_pexp: false
+rc_bg: true
+rc_args: ""
+rc_runtime_dir: /
+rc_description: managed by Ansible
diff --git a/roles/rc/defaults/os_alpine.yml b/roles/rc/defaults/os_alpine.yml
new file mode 100644
index 0000000..5b87a57
--- /dev/null
+++ b/roles/rc/defaults/os_alpine.yml
@@ -0,0 +1 @@
+rc_dir: /etc/init.d
diff --git a/roles/rc/defaults/os_openbsd.yml b/roles/rc/defaults/os_openbsd.yml
new file mode 100644
index 0000000..345a648
--- /dev/null
+++ b/roles/rc/defaults/os_openbsd.yml
@@ -0,0 +1 @@
+rc_dir: /etc/rc.d
remember that computers suck.