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:
parent
1544924550
commit
486370a744
3 changed files with 4 additions and 1 deletions
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- "win_iis_virtualdirectory - Support recursive removal (https://github.com/ansible/ansible/issues/49755)"
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue