Abort execution of remaining task if certain condition is failed

前端 未结 3 1311
悲&欢浪女
悲&欢浪女 2020-12-23 20:04

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

3条回答
  •  悲哀的现实
    2020-12-23 20:38

    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

提交回复
热议问题