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

Configures IIS web applications

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

Authors: Henrik Wallström

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.7.9

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

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

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

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

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

Outputs

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