From 82140478dbd67ad934238588097b9db132d8ac3a Mon Sep 17 00:00:00 2001 From: donotos Date: Thu, 6 Nov 2025 14:35:45 +0100 Subject: [PATCH] get rc powershell test11 --- execute_command_ps.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/execute_command_ps.yml b/execute_command_ps.yml index 825e5fe..774f8fc 100644 --- a/execute_command_ps.yml +++ b/execute_command_ps.yml @@ -8,7 +8,5 @@ ansible.windows.win_powershell: script: "{{ command }}" chdir: "{{ execution_path }}" - register: pwsh_output - - - debug: - msg: "{{ pwsh_output.output[0] }}" \ No newline at end of file + register: output + failed_when: output.output[0] != 0 \ No newline at end of file