Fix win_iis_virtualdirectory to remove a virtual directory that contains children (#56569)

* FIX #49755

* Added changelog fragment

* Changes according to review

* Fixed changelog
This commit is contained in:
ShachafGoldstein 2019-05-28 22:59:50 +03:00 committed by Jordan Borean
parent 1544924550
commit 486370a744
3 changed files with 4 additions and 1 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- "win_iis_virtualdirectory - Support recursive removal (https://github.com/ansible/ansible/issues/49755)"

View file

@ -65,7 +65,7 @@ try {
# Remove directory
If ($state -eq 'absent' -and $directory) {
Remove-Item $directory_path
Remove-Item $directory_path -Recurse -Force
$result.changed = $true
}

View file

@ -24,6 +24,7 @@ options:
state:
description:
- Whether to add or remove the specified virtual directory.
- Removing will remove the virtual directory and all under it (Recursively).
type: str
choices: [ absent, present ]
default: present