Browse Source

fix(apache/modules.sls): fix duplicated ID

tags/v0.38.2
Sergio Cambra 5 years ago
parent
commit
57afd71627
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      apache/modules.sls

+ 2
- 1
apache/modules.sls View File

@@ -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

Loading…
Cancel
Save