Sou*_*hti 5 ansible ansible-facts
我正在运行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
Run Code Online (Sandbox Code Playgroud)
我是否需要通过收集事实或其中的某些内容来进行任何更改ansible.cfg
?
加:
gather_facts: true
Run Code Online (Sandbox Code Playgroud)
到最后一次播放并尝试。