Get details of installed iis websites

18 views
Skip to first unread message

Suporter

unread,
Feb 5, 2018, 2:05:15 AM2/5/18
to Ansible Project
I am using  win_iis_website and would like to know whether it is possible to fetch the details of already installed websites like location, application pool and so on

Aaron K

unread,
Feb 12, 2018, 9:01:28 PM2/12/18
to Ansible Project
Looks like it returns app pool and Physical Path (assume you mean location on disk):

https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/windows/win_iis_website.ps1


 
 
 

if ($site)
 

{
 

 $result
.site = @{
 

 
Name = $site.Name
 

 ID
= $site.ID
 

 
State = $site.State
 

 
PhysicalPath = $site.PhysicalPath
 

 
ApplicationPool = $site.applicationPool
 

 
Bindings = @($site.Bindings.Collection | ForEach-Object { $_.BindingInformation })
 

 
}
 
}
Reply all
Reply to author
Forward
0 new messages