diff --git a/lib/ansible/runner/return_data.py b/lib/ansible/runner/return_data.py index 6923d95c3fb..0dca40a3125 100644 --- a/lib/ansible/runner/return_data.py +++ b/lib/ansible/runner/return_data.py @@ -51,5 +51,5 @@ class ReturnData(object): return self.comm_ok def is_successful(self): - return self.comm_ok and ('failed' not in self.result) and (self.result.get('rc',0) == 0) + return self.comm_ok and (self.result.get('failed', False) == False) and (self.result.get('rc',0) == 0)