Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在我的一个项目中运行多个用于测试自动化的 ansible 剧本。问题是,即使一项任务(在一个剧本中)失败,测试(包含多个剧本)也会中止。
有没有办法克服这个问题?
你可以设置ignore_errors: yes. 这可以为某些任务或整个剧本设置。
ignore_errors: yes
- hosts: all ignore_errors: yes roles: ...