Created
November 22, 2020 19:49
-
-
Save adbertram/82afd6d62d3781f5b7a941d6bf3a6865 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
--- | |
- hosts: azurevms | |
gather_facts: no | |
tasks: | |
- name: Install IIS features | |
win_feature: | |
name: | |
- Web-Server | |
- Web-Common-Http | |
- Web-Mgmt-Service | |
include_management_tools: yes | |
state: present | |
- name: Enable IIS remote management | |
win_regedit: | |
path: HKLM:\SOFTWARE\Microsoft\WebManagement\Server | |
name: EnableRemoteManagement | |
data: 1 | |
type: dword | |
- name: Install WebDeploy | |
win_package: | |
path: https://download.microsoft.com/download/0/1/D/01DC28EA-638C-4A22-A57B-4CEF97755C6C/WebDeploy_amd64_en-US.msi | |
product_id: '{6773A61D-755B-4F74-95CC-97920E45E696}' | |
arguments: ADDLOCAL=ALL | |
state: present | |
- name: Start and set management service to auto | |
win_service: | |
name: WMSvc | |
start_mode: auto | |
state: started |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment