1

I have a main ansible playbook site.yml which includes three books one for webservers, one for dbservers, one for others.
Each has their own selection crietia specified in their own files e.g hosts:tag_name_webapp1 and similar. The issue is, if all hosts in web servers fail, ansible stops execution then and there. I want it to continue with the tasks in dbservers and so on.

4

1 回答 1

4

如果您想在一个任务失败后继续执行下一个任务,您可以使用ignore_errors.

https://docs.ansible.com/playbooks_error_handling.html#ignoring-failed-commands

于 2014-04-07T14:22:02.027 回答