--- - name: run tests with cleanup block: - name: run tests include_tasks: win_rds_cap_tests.yml always: - name: delete all CAPs win_shell: Import-Module RemoteDesktopServices; Remove-Item -Path RDS:\GatewayServer\CAP\* -Recurse