Configure a Windows IIS Web Server
Configure a Windows host IIS (Internet Information Services) web server with an Ansible playbook.
We'll cover the following...
We'll cover the following...
Let’s configure a Windows host to run an IIS(Internet Information Services) web server with an Ansible playbook. You’ll perform the following steps:
- Create a new file named
configure_iis_web_server.yml. - Add the
hostsline targeting theallgroup.
- Use
vars_promptsto prompt for a username and password.
- Define the connection variables for a Windows host.
- Add the tasks list.
- Install the
web-serverfeature and all subfeatures with thewin_featuremodule.
win_feature is an Ansible module used to install or uninstall roles or features for Windows servers. It requires the name parameter, which is passed as a web-server. web-server is the Windows feature’s name to install IIS.
include_management_tools is specified and provided a ...