Configures a IIS Web site binding
- Creates, removes and configures a binding to an existing IIS Web site.
.. seealso:: :ref:`community.windows.win_iis_virtualdirectory_module` The official documentation on the **community.windows.win_iis_virtualdirectory** module. :ref:`community.windows.win_iis_webapplication_module` The official documentation on the **community.windows.win_iis_webapplication** module. :ref:`community.windows.win_iis_webapppool_module` The official documentation on the **community.windows.win_iis_webapppool** module. :ref:`community.windows.win_iis_website_module` The official documentation on the **community.windows.win_iis_website** module.
- 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
Common return values are documented here, the following are the fields unique to this module:
- Noah Sparks (@nwsparks)
- Henrik Wallström (@henrikwallstrom)