The telegraf packages in the open build service have a systemd service file but this role installs an init script unconditionally.
Newer SUSE/openSUSE systems don't require insserv-compat to be installed and installing the init script will fail with:
Unable to enable service telegraf: Synchronizing state of telegraf.service with SysV service script with /usr/lib/systemd/systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install enable telegraf
/sbin/insserv: No such file or directory
Describe the bug
The telegraf packages in the open build service have a systemd service file but this role installs an init script unconditionally.
Newer SUSE/openSUSE systems don't require insserv-compat to be installed and installing the init script will fail with:
Installation method/version
Targetted hosts Concerns the following OS(es):
Expected behavior
The role installs telegraf and enables it without error.
Additional context
I've fixed this locally and will start a PR after submitting this issue to use as a reference.