diff --git a/execute_command_ps.yml b/execute_command_ps.yml index d778d4d..8375028 100644 --- a/execute_command_ps.yml +++ b/execute_command_ps.yml @@ -9,4 +9,4 @@ script: "{{ command }}" chdir: "{{ execution_path }}" register: ps_script - failed_when: rc != 0 \ No newline at end of file + failed_when: ps_script.rc != 0 \ No newline at end of file