Ansible doesn't fail when no host found using ec2.py

3 views
Skip to first unread message

ir...@rezgateway.com

unread,
Feb 28, 2017, 9:29:48 AM2/28/17
to Ansible Project
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
Reply all
Reply to author
Forward
0 new messages