From 9166498fd8fe046c24220f95b7876a50f3a99d3a Mon Sep 17 00:00:00 2001 From: noelmcloughlin Date: Thu, 15 Jul 2021 09:08:10 +0100 Subject: [PATCH] fix(indempotency): run reload onchanges only --- prometheus/archive/install.sls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prometheus/archive/install.sls b/prometheus/archive/install.sls index 064f21a..47ad4f0 100644 --- a/prometheus/archive/install.sls +++ b/prometheus/archive/install.sls @@ -153,7 +153,7 @@ prometheus-archive-install-{{ name }}-managed-service: - group: prometheus-config-users-install-{{ name }}-group-present cmd.run: - name: systemctl daemon-reload - - require: + - onchanges: {%- if p.pkg.component.get(name).get('archive').get('tar', true) %} - archive: prometheus-archive-install-{{ name }} {% else %}