I want to abort execution of remaining task if certain condition is failed. and display proper error message.
So instead of skipping remaining task I want to show er
So in Ansible 2.2+ there is the meta module: http://docs.ansible.com/ansible/latest/meta_module.html
So
meta: end_play
stops the playbook with a non failing status