Documentation

win_iis_webapplication - Configures IIS web applications

New in version 2.0.

Synopsis

  • Creates, removes, and configures IIS web applications.

Parameters

Parameter Choices/Defaults Comments
application_pool
The application pool in which the new site executes.
name
required
Name of the web application.
physical_path
The physical path on the remote host to use for the new application.
The specified folder must already exist.
site
required
Name of the site on which the application is created.
state
    Choices:
  • absent
  • present ←
State of the web application.

Examples

- name: Add ACME webapplication on IIS.
  win_iis_webapplication:
    name: api
    site: acme
    state: present
    physical_path: C:\apps\acme\api

Return Values

Common return values are documented here, the following are the fields unique to this module:

Key Returned Description
application_pool
string
success
The used/implemented application_pool value

Sample:
DefaultAppPool
physical_path
string
success
The used/implemented physical_path value

Sample:
C:\apps\acme\api


Status

This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.

Maintenance

This module is flagged as community which means that it is maintained by the Ansible Community. See Module Maintenance & Support for more info.

For a list of other modules that are also maintained by the Ansible Community, see here.

Author

  • Henrik Wallström

Hint

If you notice any issues in this documentation you can edit this document to improve it.