diff --git a/apache/php5.sls b/apache/php5.sls index ac28e87..e68569b 100644 --- a/apache/php5.sls +++ b/apache/php5.sls @@ -2,6 +2,7 @@ include: - apt + - apache mod-php5: pkg.installed: diff --git a/apache/rewrite.sls b/apache/rewrite.sls index 51099f5..44e0153 100644 --- a/apache/rewrite.sls +++ b/apache/rewrite.sls @@ -2,11 +2,14 @@ include: - apt + - apache a2enmod rewrite: cmd.run: - unless: ls /etc/apache2/mods-enabled/rewrite.load - order: 225 + - require: + - pkg: apache - watch_in: - cmd: apache-restart