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
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 })
}
}
`