Playbook doesn't fail with EC2 when no hosts return

5 views
Skip to first unread message

ir...@rezgateway.com

unread,
Mar 3, 2017, 1:29:55 AM3/3/17
to Ansible Project
Usually ansible playbook task fails when there's no host found when using static inventory. But when using EC2.py and when there's no host returns playbook doesn't fail which prevents us from notifying that task has not been run on particular instance with automated tasks.

Below is the output of playbook when no host found


PLAY RECAP
*********************************************************************

Finished: SUCCESS


Have anyone come across this issue or is there's any option to change its behaviour

Thanks
Irfad
Reply all
Reply to author
Forward
0 new messages