gpt4 book ai didi

ansible-facts - Ansible 不报告 Ubuntu 20.04 上的分发信息?

转载 作者:行者123 更新时间:2023-12-03 21:56:54 24 4
gpt4 key购买 nike

Ubuntu 18.04 在“ansible_facts”中报告分布信息的示例:

$ ansible -i hosts ubuntu1804 -u root -m setup -a "filter=ansible_distribution*"
ubuntu1804 | SUCCESS => {
"ansible_facts": {
"ansible_distribution": "Ubuntu",
"ansible_distribution_file_parsed": true,
"ansible_distribution_file_path": "/etc/os-release",
"ansible_distribution_file_variety": "Debian",
"ansible_distribution_major_version": "18",
"ansible_distribution_release": "bionic",
"ansible_distribution_version": "18.04"
},
"changed": false
}

针对 Ubuntu 20.04 的相同命令示例:
$ ansible -i hosts ubuntu2004 -u root -m setup -a "filter=ansible_distribution*"
ubuntu2004 | SUCCESS => {
"ansible_facts": {},
"changed": false
}

这是 Ubuntu 或 Ansible 的问题吗?有解决方法吗?

最佳答案

今天更新到 ansible 2.9.7 解决了问题.

关于ansible-facts - Ansible 不报告 Ubuntu 20.04 上的分发信息?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61460151/

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