fix(indempotency): run reload onchanges only

This commit is contained in:
noelmcloughlin 2021-07-15 09:08:10 +01:00
parent 2c572d0019
commit 9166498fd8

View File

@ -153,7 +153,7 @@ prometheus-archive-install-{{ name }}-managed-service:
- group: prometheus-config-users-install-{{ name }}-group-present - group: prometheus-config-users-install-{{ name }}-group-present
cmd.run: cmd.run:
- name: systemctl daemon-reload - name: systemctl daemon-reload
- require: - onchanges:
{%- if p.pkg.component.get(name).get('archive').get('tar', true) %} {%- if p.pkg.component.get(name).get('archive').get('tar', true) %}
- archive: prometheus-archive-install-{{ name }} - archive: prometheus-archive-install-{{ name }}
{% else %} {% else %}