Skip to content

Commit

Permalink
Migrate win_iis_webapplication module to new microsoft.iis repository
Browse files Browse the repository at this point in the history
  • Loading branch information
ronger4 committed Jan 12, 2025
1 parent d89519b commit 95bc3de
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 18 deletions.
9 changes: 5 additions & 4 deletions plugins/modules/web_application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ DOCUMENTATION:
short_description: Configures IIS web applications
description: >
Creates, removes, and configures IIS web applications.
requirements:
- C(IISAdministration) PowerShell module
options:
name:
description:
Expand Down Expand Up @@ -59,10 +61,9 @@ DOCUMENTATION:
- Required when I(connect_as) is set to C(specific_user).
type: str
seealso:
- module: community.windows.win_iis_virtualdirectory
- module: community.windows.win_iis_webapppool
- module: community.windows.win_iis_webbinding
- module: community.windows.win_iis_website
- module: microsoft.iis.web_app_pool
- module: microsoft.iis.website
- module: microsoft.iis.web_application_info
author:
- Henrik Wallström (@henrikwallstrom)

Expand Down
9 changes: 5 additions & 4 deletions plugins/modules/web_application_info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ DOCUMENTATION:
short_description: Get information on IIS Web Applications
description:
- Returns information about IIS web applications.
requirements:
- C(IISAdministration) PowerShell module
options:
name:
description:
Expand All @@ -17,10 +19,9 @@ DOCUMENTATION:
- Name of the site on which the application is created.
type: str
seealso:
- module: community.windows.win_iis_virtualdirectory
- module: community.windows.win_iis_webapppool
- module: community.windows.win_iis_webbinding
- module: community.windows.win_iis_website
- module: microsoft.iis.web_app_pool
- module: microsoft.iis.website
- module: microsoft.iis.web_application
author:
- Ron Gershburg (@rgershbu)

Expand Down
3 changes: 1 addition & 2 deletions tests/integration/targets/web_application/aliases
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
windows
shippable/windows/group4
# unstable - Random IIS configuration errors
shippable/windows/group1
4 changes: 2 additions & 2 deletions tests/integration/targets/web_application/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@
name: "{{ test_app_name }}"

- name: remove test application pool
community.windows.win_iis_webapppool:
web_app_pool:
name: "{{ test_apppool }}"
state: absent

- name: remove test site
win_iis_website:
website:
name: "{{ test_site_name }}"
state: absent

Expand Down
4 changes: 2 additions & 2 deletions tests/integration/targets/web_application/tasks/tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
- name: test site exists, but stopped in case of duplicate web binding
community.windows.win_iis_website:
website:
name: "{{ test_site_name }}"
state: stopped
physical_path: 'C:\inetpub\wwwroot'
Expand Down Expand Up @@ -76,7 +76,7 @@
- result.changed == false

- name: create new test application pool
community.windows.win_iis_webapppool:
web_app_pool:
name: "{{ test_apppool }}"
state: present

Expand Down
6 changes: 3 additions & 3 deletions tests/integration/targets/web_application_info/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,17 @@
name: "{{ test_app_name_B }}"

- name: remove test application pool
community.windows.win_iis_webapppool:
web_app_pool:
name: "{{ test_apppool }}"
state: absent

- name: remove test site A
win_iis_website:
website:
name: "{{ test_site_name_A }}"
state: absent

- name: remove test site B
win_iis_website:
website:
name: "{{ test_site_name_B }}"
state: absent

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
test_sites:
- "{{ test_site_name_A }}"
- "{{ test_site_name_B }}"
community.windows.win_iis_website:
website:
name: "{{ item }}"
state: stopped
physical_path: 'C:\inetpub\wwwroot'
Expand Down

0 comments on commit 95bc3de

Please sign in to comment.