ansible.builtin.win_iis_webapplication (v2.9.27) — module

Configures IIS web applications

| "added in version" 2.0 of ansible.builtin"

Authors: Henrik Wallström (@henrikwallstrom)

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.9.27

Description

Creates, removes, and configures IIS web applications.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Add ACME webapplication on IIS.
  win_iis_webapplication:
    name: api
    site: acme
    state: present
    physical_path: C:\apps\acme\api

Inputs

    
name:
    description:
    - Name of the web application.
    required: true
    type: str

site:
    description:
    - Name of the site on which the application is created.
    required: true
    type: str

state:
    choices:
    - absent
    - present
    default: present
    description:
    - State of the web application.
    type: str

physical_path:
    description:
    - The physical path on the remote host to use for the new application.
    - The specified folder must already exist.
    type: str

application_pool:
    description:
    - The application pool in which the new site executes.
    type: str

Outputs

application_pool:
  description: The used/implemented application_pool value.
  returned: success
  sample: DefaultAppPool
  type: str
physical_path:
  description: The used/implemented physical_path value.
  returned: success
  sample: C:\apps\acme\api
  type: str

See also