Add new IIS Site
Description
This playbook automates the creation of a new IIS website on a Windows server. It sets up required folders, removes any existing site and app pool with the same name, creates a new application pool with the specified settings, retrieves the correct SSL certificate, and configures the website with HTTPS bindings and logging.
Credentials
- sys_ansible_iis
Input
| Variable | Description |
|---|---|
site_name |
Name of the IIS site to create |
site_prefix |
Prefix for the IIS site name (default: D09.) |
runtime |
.NET runtime version for the app pool (optional) |
start_mode |
Application pool start mode (default: OnDemand) |
pipeline |
Managed pipeline mode (default: Integrated) |
identity_type |
Identity type for the app pool (default: ApplicationPoolIdentity) |
authentication |
Authentication mode (default: Anonymous) |
x86 |
Run application pool in 32-bit mode (default: false) |
binding_domain |
Domain for IIS binding (default: .gentgrp.gent.be) |
binding_subdomain |
Subdomain for IIS binding (auto-generated if not provided) |
load_user_profile |
Load user profile for app pool (default: false) |
iis_user |
Username for app pool (if required by identity type) |
iis_password |
Password for app pool (if required by identity type) |
userType |
User type for app pool (e.g., gmsa, sys) (optional) |
target |
Target Windows server |
Output
None