--- - name: run tests with cleanup when: rds_available # defined in setup_win_rds block: - name: run tests include_tasks: tests.yml always: - name: delete all RAPs win_shell: Import-Module RemoteDesktopServices; Remove-Item -Path RDS:\GatewayServer\RAP\* -Recurse