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

Configures a IIS Web site.

| "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 a binding to an existing IIS Web site

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Return binding information for an existing host
  win_iis_webbinding:
    name: Default Web Site
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Return the HTTPS binding information for an existing host
  win_iis_webbinding:
    name: Default Web Site
    protocol: https
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Add a HTTP binding on port 9090
  win_iis_webbinding:
    name: Default Web Site
    port: 9090
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Remove the HTTP binding on port 9090
  win_iis_webbinding:
    name: Default Web Site
    port: 9090
    state: absent
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Add a HTTPS binding
  win_iis_webbinding:
    name: Default Web Site
    protocol: https
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Add a HTTPS binding and select certificate to use
  win_iis_webbinding:
    name: Default Web Site
    protocol: https
    certificate_hash: B0D0FA8408FC67B230338FCA584D03792DA73F4C
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Website https biding to specific port
  win_iis_webbinding:
    name: Default Web Site
    protocol: https
    port: 443
    certificate_hash: D1A3AF8988FD32D1A3AF8988FD323792DA73F4C
    state: present

Inputs

    
ip:
    aliases: []
    default: null
    description:
    - The IP address to bind to / use for the new site.
    required: false

name:
    aliases: []
    default: null
    description:
    - Names of web site
    required: true

port:
    aliases: []
    default: null
    description:
    - The port to bind to / use for the new site.
    required: false

state:
    aliases: []
    choices:
    - present
    - absent
    default: null
    description:
    - State of the binding
    required: false

protocol:
    aliases: []
    default: null
    description:
    - The protocol to be used for the Web binding (usually HTTP, HTTPS, or FTP).
    required: false

host_header:
    aliases: []
    default: null
    description:
    - The host header to bind to / use for the new site.
    required: false

certificate_hash:
    aliases: []
    default: null
    description:
    - Certificate hash for the SSL binding. The certificate hash is the unique identifier
      for the certificate.
    required: false

certificate_store_name:
    aliases: []
    default: My
    description:
    - Name of the certificate store where the certificate for the binding is located.
    required: false