2

我正在将 Ansible 与 Molecule 一起使用。我刚刚遇到了融合我的角色失败的情况:

fatal: [instance]: FAILED! => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result"}

如何缓解?稍等,我来回答...

4

1 回答 1

1

对我有用的是将分子的日志记录设置为“true”:

  1. 转到“molecule.yml”文件,这是您对分子进行配置的地方。
    您应该在molecule/default/目录中找到它
  2. 查找provisioner:部分
  3. 添加log: true到它。
  4. 瞧!

这就是它的外观:

provisioner:
  name: ansible
  log: true

请注意,在此部分中可能有其他设置供配置者使用。

于 2020-06-07T11:01:49.537 回答