Ansible:如果当前任务失败,它会跳到下一个任务吗

Ansible: will it skip to next task if the current task failed

Ansible是按顺序执行任务的,如果当前任务失败,会跳转到下一个任务吗?

剧本中的错误处理中所述 :

When Ansible receives a non-zero return code from a command or a failure from a module, by default it stops executing on that host and continues on other hosts.

[...]

You can use ignore_errors to continue on in spite of the failure