Create 05_windows_iis.yml
This commit is contained in:
23
playbooks/05_windows_iis.yml
Normal file
23
playbooks/05_windows_iis.yml
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
---
|
||||||
|
- name: install the iis web service
|
||||||
|
hosts: windows
|
||||||
|
|
||||||
|
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_test_message }}"
|
||||||
|
dest: C:\Inetpub\wwwroot\index.html
|
||||||
|
|
||||||
|
- name: Show website address
|
||||||
|
debug:
|
||||||
|
msg: http://{{ ansible_host }}
|
||||||
Reference in New Issue
Block a user