gpt4 book ai didi

ansible - 使用 Ansible Molecule 进行测试时如何跳过某些角色任务?

转载 作者:行者123 更新时间:2023-12-03 23:35:55 29 4
gpt4 key购买 nike

当我使用 Ansible Molecule 执行功能测试时,跳过某些角色任务的最简单方法是什么?

最佳答案

当代码由分子运行时,您可以使用两个隐式标签 notest and molecule-notest .

例子:

- name: my task
tags: notest
shell: sudo rm -rf /

关于ansible - 使用 Ansible Molecule 进行测试时如何跳过某些角色任务?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57216581/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com