我正在运行 YAML 文件中定义的多个 ansible 播放。
在最后一场比赛中,我收到以下错误:
{"failed": true, "msg": "The conditional check 'ansible_os_family == \"RedHat\"' failed. The error was: error while evaluating conditional (ansible_os_family == \"RedHat\"): 'ansible_os_family' is undefined\n
我是否需要通过收集事实或其他内容来更改任何内容ansible.cfg
?