ansible / ansible.builtin / v2.6.2 / module / win_iis_website Configures a IIS Web site | "added in version" 2.0 of ansible.builtin" Authors: Henrik Wallström preview | supported by communityansible.builtin.win_iis_website (v2.6.2) — module
pip
Install with pip install ansible==2.6.2
Creates, Removes and configures a IIS Web site.
# Start a website - name: Acme IIS site win_iis_website: name: Acme state: started port: 80 ip: 127.0.0.1 hostname: acme.local application_pool: acme physical_path: C:\sites\acme parameters: logfile.directory:C:\sites\logs register: website
# Remove Default Web Site and the standard port 80 binding - name: Remove Default Web Site win_iis_website: name: "Default Web Site" state: absent
ip: description: - The IP address to bind to / use for the new site. ssl: description: - Enables HTTPS binding on the site.. name: description: - Names of web site. required: true port: description: - The port to bind to / use for the new site. state: choices: - absent - started - stopped - restarted description: - State of the web site site_id: description: - Explicitly set the IIS numeric ID for a site. - Note that this value cannot be changed after the website has been created. version_added: '2.1' version_added_collection: ansible.builtin hostname: description: - The host header to bind to / use for the new site. parameters: description: - Custom site Parameters from string where properties are separated by a pipe and property name/values by colon Ex. "foo:1|bar:2" physical_path: description: - The physical path on the remote host to use for the new site. - The specified folder must already exist. application_pool: description: - The application pool in which the new site executes.