11 lines
451 B
YAML
11 lines
451 B
YAML
---
|
|
- name: Deleting contents of XppiL folder
|
|
ansible.windows.win_powershell:
|
|
script: |
|
|
$path = 'D:\Program Files\Microsoft Dynamics AX\60\Server\TravelCardDynamicsAX\bin\XppIL'
|
|
Get-Item -Path "$path\*" | Remove-Item -Force -Recurse
|
|
$items = Get-ChildItem -Recurse -Path $path
|
|
if($items.Count -gt 0) {
|
|
$Ansible.Result = "Items remaining in XppiL: $($items.Count)"
|
|
$Ansible.Failed = $true
|
|
} |