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