Merge pull request #269 from scambra/patch-modules

fix duplicated ID
This commit is contained in:
Niels Abspoel 2019-11-07 17:49:43 +01:00 committed by GitHub
commit 505ce0332b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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