Skip to content

Instantly share code, notes, and snippets.

@rterbush
Created June 8, 2016 18:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rterbush/6fc82d7ddc0228d8fa7a3e274290cf42 to your computer and use it in GitHub Desktop.
Save rterbush/6fc82d7ddc0228d8fa7a3e274290cf42 to your computer and use it in GitHub Desktop.
{% if grains.get('webserver_role') != 'complete' %}
enable_webserver_role:
win_servermanager.installed:
- force: True
- recurse: True
- name: Web-Server
- required_in:
- file: install_iis_config
install_urlrewrite:
pkg.installed:
- pkgs:
- urlrewrite
- advancedlogging
webserver_role_complete:
module.run:
- name: grains.setval
- key: webserver_role
- val: complete
- require:
- pkg: install_urlrewrite
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment