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