diff --git a/test/integration/roles/test_failed_when/tasks/main.yml b/test/integration/roles/test_failed_when/tasks/main.yml index a69cef74cf..4a5617e142 100644 --- a/test/integration/roles/test_failed_when/tasks/main.yml +++ b/test/integration/roles/test_failed_when/tasks/main.yml @@ -54,7 +54,7 @@ - assert: that: - - "'failed' not in result" + - "'failed' in result and result.failed" - name: command rc 1 failed_when_result False shell: exit 1