From 57afd71627eb554138c8d5ec9cc790d899ed80ff Mon Sep 17 00:00:00 2001 From: Sergio Cambra Date: Fri, 27 Sep 2019 16:09:16 +0200 Subject: [PATCH] fix(apache/modules.sls): fix duplicated ID --- apache/modules.sls | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apache/modules.sls b/apache/modules.sls index 8f49740..18985e5 100644 --- a/apache/modules.sls +++ b/apache/modules.sls @@ -11,7 +11,8 @@ include: {%- endfor %} {% for module in salt['pillar.get']('apache:modules:enabled', []) %} -{% if module not in existing_states %} +{%- set mod_state = 'apache.mod_{}'.format(module) %} +{% if mod_state not in existing_states %} a2enmod {{ module }}: cmd.run: - unless: ls /etc/apache2/mods-enabled/{{ module }}.load