From 7f039b489775c4dd1a5c2c69bdb3916608f36939 Mon Sep 17 00:00:00 2001 From: donotos Date: Thu, 6 Nov 2025 11:44:07 +0100 Subject: [PATCH] get rc powershell --- execute_command_ps.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/execute_command_ps.yml b/execute_command_ps.yml index 11ded14..d778d4d 100644 --- a/execute_command_ps.yml +++ b/execute_command_ps.yml @@ -7,4 +7,6 @@ - name: On execute la commande "{{ command }}" ansible.windows.win_powershell: script: "{{ command }}" - chdir: "{{ execution_path }}" \ No newline at end of file + chdir: "{{ execution_path }}" + register: ps_script + failed_when: rc != 0 \ No newline at end of file