Last active
July 28, 2016 02:43
-
-
Save zlanich/cb495854f2bbab3c98f4f7b9f04f0540 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# init.sls | |
apache-restart: | |
module.wait: | |
- name: service.restart | |
- m_name: {{ apache.service }} | |
# modules.sls | |
include: | |
- apache | |
a2enmod {{ module }}: | |
cmd.run: | |
- unless: ls /etc/apache2/mods-enabled/{{ module }}.load | |
- order: 225 | |
- require: | |
- pkg: apache | |
- watch_in: | |
- module: apache-restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment