From 83f3907beeeee8cb96a0651e2ebc15d0b923d639 Mon Sep 17 00:00:00 2001 From: donotos Date: Thu, 6 Nov 2025 12:25:50 +0100 Subject: [PATCH] get rc powershell test5 --- execute_command_ps.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/execute_command_ps.yml b/execute_command_ps.yml index 5c900ad..a76d8fa 100644 --- a/execute_command_ps.yml +++ b/execute_command_ps.yml @@ -5,9 +5,10 @@ tasks: - name: On execute la commande "{{ command }}" - ansible.windows.win_powershell: - script: "{{ command }}" + ansible.windows.win_shell: "{{ powershell_path }} {{ command }}" + args: chdir: "{{ execution_path }}" register: ps_script + - debug: msg: "{{ ps_script }}" \ No newline at end of file