Sometimes (not very often) Ansible doesn't pick the dynamic inventory ip using ec2.py and when it happens usually it should fail the job, but instead it will SUCCESS the task which prevents us from notifying that the task has not been run properly on the server.
example below.
PLAY RECAP *********************************************************************
Finished: SUCCESS
Is there any way to fail the job is such situations?
Please help