通常情况下, 当出现失败时 Ansible 会停止在宿主机上执行.有时候,你会想要继续执行下去.为此 你需要像这样编写任务:
-
name: this will not be counted as a failure
command: /bin/false
ignore_errors: yes
通常情况下, 当出现失败时 Ansible 会停止在宿主机上执行.有时候,你会想要继续执行下去.为此 你需要像这样编写任务:
name: this will not be counted as a failure
command: /bin/false
ignore_errors: yes