The Windows Playbook roles
The entire playbook can be found in the Chapter 07
folder in the repository that accompanies the title, so I will not cover how to create roles in this chapter as we have covered it at length in the previous chapters.
Enabling Windows features
Two roles cover how to enable features; the first role, called iis
, enables the Internet Information Services (IIS) on our Windows Server.
Information
IIS is the default web server that ships with Windows Server, and it supports the following protocols: HTTP, HTTPS, and HTTP/2, as well as FTP, FTPS, SMTP, and NNTP. It was first released in 1995 as part of Windows NT.
There are some default variables in roles/iis/defaults/main.yml
; these define where things need to be copied to on the server and also include the contents on an HTML file we will copy to the host:
document_root: 'C:\inetpub\wwwroot\' html_file: "ansible.html" html_heading: "Success !!!" html_body: | ...