From 2927544ce379f607670768cc61252039c627058a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Wed, 15 Dec 2021 18:21:17 +0000 Subject: roles: Add rc for service file creation Supports openrc and rc for Alpine and OpenBSD --- roles/rc/defaults/main.yml | 9 +++++++++ roles/rc/defaults/os_alpine.yml | 1 + roles/rc/defaults/os_openbsd.yml | 1 + 3 files changed, 11 insertions(+) create mode 100644 roles/rc/defaults/main.yml create mode 100644 roles/rc/defaults/os_alpine.yml create mode 100644 roles/rc/defaults/os_openbsd.yml (limited to 'roles/rc/defaults') 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 -- cgit v1.2.3