From b915e3d0c1992d890e8cd321f0ea289a44cb6d16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Paw=C5=82owski?= Date: Tue, 18 Oct 2022 13:25:14 +0200 Subject: [PATCH] feat(unit): allow to start/stop timers Allow to start/stop unit files of type timer. --- systemd/units/init.sls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/systemd/units/init.sls b/systemd/units/init.sls index a45aa60..12e88cb 100644 --- a/systemd/units/init.sls +++ b/systemd/units/init.sls @@ -30,7 +30,7 @@ systemd_systemd_units_cmd_enable_or_disable_{{ unit }}_{{ unittype }}: - watch: - cmd: reload_systemd_configuration - {% if (unittype == 'service' or unittype == 'path') %} + {% if (unittype == 'service' or unittype == 'path' or unittype == 'timer') %} {% set activation_status = unitconfig.status if unitconfig.status is defined and unitconfig.status == 'start' else 'stop' %} systemd_systemd_units_activate_or_deactivate_{{ unit }}_{{ unittype }}: cmd.wait: # noqa: 213