community.windows.win_iis_webbinding – Configures a IIS Web site binding¶
Note
This plugin is part of the community.windows collection (version 1.3.0).
To install it use: ansible-galaxy collection install community.windows
.
To use it in a playbook, specify: community.windows.win_iis_webbinding
.
Parameters¶
See Also¶
See also
- community.windows.win_iis_virtualdirectory
The official documentation on the community.windows.win_iis_virtualdirectory module.
- community.windows.win_iis_webapplication
The official documentation on the community.windows.win_iis_webapplication module.
- community.windows.win_iis_webapppool
The official documentation on the community.windows.win_iis_webapppool module.
- community.windows.win_iis_website
The official documentation on the community.windows.win_iis_website module.
Examples¶
- name: Add a HTTP binding on port 9090
community.windows.win_iis_webbinding:
name: Default Web Site
port: 9090
state: present
- name: Remove the HTTP binding on port 9090
community.windows.win_iis_webbinding:
name: Default Web Site
port: 9090
state: absent
- name: Remove the default http binding
community.windows.win_iis_webbinding:
name: Default Web Site
port: 80
ip: '*'
state: absent
- name: Add a HTTPS binding
community.windows.win_iis_webbinding:
name: Default Web Site
protocol: https
port: 443
ip: 127.0.0.1
certificate_hash: B0D0FA8408FC67B230338FCA584D03792DA73F4C
state: present
- name: Add a HTTPS binding with host header and SNI enabled
community.windows.win_iis_webbinding:
name: Default Web Site
protocol: https
port: 443
host_header: test.com
ssl_flags: 1
certificate_hash: D1A3AF8988FD32D1A3AF8988FD323792DA73F4C
state: present
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Authors¶
Noah Sparks (@nwsparks)
Henrik Wallström (@henrikwallstrom)