ansible.builtin.win_iis_webapppool (v2.3.3.0-1) — module

Configures an IIS Web Application Pool.

| "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.3.3.0.post1

Description

Creates, Removes and configures an IIS Web Application Pool

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: return information about an existing application pool
  win_iis_webapppool:
    name: DefaultAppPool
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Create a new application pool in 'Started' state
  win_iis_webapppool:
    name: AppPool
    state: started
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Stop an application pool
  win_iis_webapppool:
    name: AppPool
    state: stopped
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Restart an application pool
  win_iis_webapppool:
    name: AppPool
    state: restart
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Changes application pool attributes without touching state
  win_iis_webapppool:
    name: AppPool
    attributes: 'managedRuntimeVersion:v4.0|autoStart:false'
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Creates an application pool and sets attributes
  win_iis_webapppool:
    name: AnotherAppPool
    state: started
    attributes: 'managedRuntimeVersion:v4.0|autoStart:false'
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: return information about an existing application pool
  win_iis_webapppool:
    name: DefaultAppPool

- name: Create a new application pool in 'Started' state
  win_iis_webapppool:
    name: AppPool
    state: started

- name: Stop an application pool
  win_iis_webapppool:
    name: AppPool
    state: stopped

- name: Restart an application pool
  win_iis_webapppool:
    name: AppPool
    state: restart

- name: Changes application pool attributes without touching state
  win_iis_webapppool:
    name: AppPool
    attributes: 'managedRuntimeVersion:v4.0|autoStart:false'

- name: Creates an application pool and sets attributes
  win_iis_webapppool:
    name: AnotherAppPool
    state: started
    attributes: 'managedRuntimeVersion:v4.0|autoStart:false'

# Playbook example
---

- name: App Pool with .NET 4.0
  win_iis_webapppool:
    name: 'AppPool'
    state: started
    attributes: managedRuntimeVersion:v4.0
  register: webapppool

Inputs

    
name:
    aliases: []
    default: null
    description:
    - Name of application pool
    required: true

state:
    choices:
    - absent
    - stopped
    - started
    - restarted
    default: null
    description:
    - State of the binding
    required: false

attributes:
    default: null
    description:
    - Application Pool attributes from string where attributes are separated by a pipe
      and attribute name/values by colon Ex. "foo:1|bar:2".
    - The following attributes may only have the following names.
    - managedPipelineMode may be either "Integrated" or  "Classic".
    - startMode may be either "OnDemand" or  "AlwaysRunning".
    - state may be one of "Starting", "Started", "Stopping", "Stopped", "Unknown". Use
      the C(state) module parameter to modify, states shown are reflect the possible runtime
      values.
    required: false

Outputs

attributes:
  description:
  - Application Pool attributes from that were processed by this module invocation.
  returned: success
  sample:
    enable32BitAppOnWin64: 'true'
    managedPipelineMode: Classic
    managedRuntimeVersion: v4.0
  type: dictionary
info:
  contains:
    attributes:
      description: key value pairs showing the current Application Pool attributes
      returned: success
      sample:
        CLRConfigFile: ''
        applicationPoolSid: S-1-5-82-1352790163-598702362-1775843902-1923651883-1762956711
        autoStart: true
        enable32BitAppOnWin64: true
        enableConfigurationOverride: true
        managedPipelineMode: Classic
        managedRuntimeLoader: webengine4.dll
        managedRuntimeVersion: v4.0
        name: DefaultAppPool
        passAnonymousToken: true
        queueLength: 1000
        startMode: OnDemand
        state: Started
      type: dictionary
    name:
      description:
      - Name of Application Pool that was processed by this module invocation.
      returned: success
      sample: DefaultAppPool
      type: string
    state:
      description:
      - Current runtime state of the pool as the module completed.
      returned: success
      sample: Started
      type: string
  description: Information on current state of the Application Pool
  returned: success
  sample: null
  type: dictionary