You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ansible master in CentOS and target node Windows Server 2022 (IIS).
STEPS TO REPRODUCE
iis_path_default: "C:\inetpub\WebCloud\"
# This tasks works properly... like expected
- name: Convert to web application Administracioncommunity.windows.win_iis_webapplication:
name: "Administration\\Administration.WebAPI.lcloud"application_pool: Administracionconnect_as: pass_throughphysical_path: "{{ iis_path_default }}Administration\\Administration.WebAPI.lcloud"site: WebCloudstate: presenttags: debug# but this doesn't remove the app in IIS
- name: Convert to web application Administracioncommunity.windows.win_iis_webapplication:
name: "Administration\\Administration.WebAPI.lcloud"application_pool: Administracionconnect_as: pass_throughphysical_path: "{{ iis_path_default }}Administration\\Administration.WebAPI.lcloud"site: WebCloudstate: absenttags: debug
ACTUAL RESULTS
TASK [iis : Convert to web application Administracion] ************************************************************************************************************************************************************************************************************************
task path: /home/frodriguez/linceweb/roles/iis/tasks/main.yaml:68
Using module file /usr/lib/python3.11/site-packages/ansible_collections/community/windows/plugins/modules/win_iis_webapplication.ps1
Pipelining is enabled.
<windows.came.com> ESTABLISH WINRM CONNECTION FOR USER: Parkare on PORT 5985 TO windows.came.com
EXEC (via pipeline wrapper)
changed: [windows.came.com] => changed=true
application_pool: Administracion
physical_path: C:\inetpub\WebCloud\Administration\Administration.WebAPI.lcloud
TASK [iis : Convert to web application Administracion] ************************************************************************************************************************************************************************************************************************
task path: /home/frodriguez/linceweb/roles/iis/tasks/main.yaml:78
Using module file /usr/lib/python3.11/site-packages/ansible_collections/community/windows/plugins/modules/win_iis_webapplication.ps1
Pipelining is enabled.
<windows.came.com> ESTABLISH WINRM CONNECTION FOR USER: Parkare on PORT 5985 TO windows.came.com
EXEC (via pipeline wrapper)
ok: [windows.came.com] => changed=false
application_pool: Administracion
physical_path: C:\inetpub\WebCloud\Administration\Administration.WebAPI.lcloud
The text was updated successfully, but these errors were encountered:
SUMMARY
The state absent property does not work as expected.
ISSUE TYPE
COMPONENT NAME
community.windows.win_iis_webapplication
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Ansible master in CentOS and target node Windows Server 2022 (IIS).
STEPS TO REPRODUCE
iis_path_default: "C:\inetpub\WebCloud\"
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: