Added Windows templates (#1)

add windows demos
This commit is contained in:
MKletz
2022-02-15 13:21:10 -06:00
committed by GitHub
parent b1ce718762
commit 6412c17e51
7 changed files with 192 additions and 3 deletions

25
windows/install_iis.yml Normal file
View File

@@ -0,0 +1,25 @@
---
- name: Install IIS
hosts: "{{ HOSTS | default('windows') }}"
vars:
iis_message: undef
tasks:
- name: Install IIS
win_feature:
name: Web-Server
state: present
- name: Start IIS service
win_service:
name: W3Svc
state: started
- name: Create website index.html
win_copy:
content: "{{ iis_message }}"
dest: C:\Inetpub\wwwroot\index.html
- name: Show website address
debug:
msg: http://{{ ansible_host }}