25
windows/install_iis.yml
Normal file
25
windows/install_iis.yml
Normal 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 }}
|
||||
Reference in New Issue
Block a user