请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

一键部署问题

图片描述The full traceback is:
WARNING: The below traceback may not be related to the actual failure.
File “/tmp/ansible_yum_payload_3grzkw/ansible_yum_payload.zip/ansible/modules/packaging/os/yum.py”, line 1601, in run
fatal: [node-1]: FAILED! => {
“attempts”: 4,
“changed”: false,
“invocation”: {
“module_args”: {
“allow_downgrade”: false,
“autoremove”: false,
“bugfix”: false,
“conf_file”: null,
“disable_excludes”: null,
“disable_gpg_check”: false,
“disable_plugin”: [],
“disablerepo”: [],
“download_dir”: null,
“download_only”: false,
“enable_plugin”: [],
“enablerepo”: [],
“exclude”: [],
“install_repoquery”: true,
“install_weak_deps”: true,
“installroot”: “/”,
“list”: null,
“lock_timeout”: 30,
“name”: [
“libselinux-python”,
“device-mapper-libs”,
“nss”,
“conntrack”,
“openssl”,
“curl”,
“rsync”,
“socat”,
“unzip”,
“e2fsprogs”,
“xfsprogs”,
“ebtables”,
“ipvsadm”,
“ipset”
],
“releasever”: null,
“security”: false,
“skip_broken”: false,
“state”: “latest”,
“update_cache”: false,
“update_only”: false,
“use_backend”: “auto”,
“validate_certs”: true
}
},
“msg”: “There are no enabled repos.\n Run “yum repolist all” to see the repos you have.\n To enable Red Hat Subscription Management repositories:\n subscription-manager repos --enable \n To enable custom repositories:\n yum-config-manager --enable \n”,
“rc”: 1,
“results”: []
}

正在回答 回答被采纳积分+3

1回答

刘果国 2021-12-05 20:08:06

可能是主机yum源配置问题,按照错误提示执行命令再试一下:Run “yum repolist all” to see the repos you have.\n To enable Red Hat Subscription Management repositories:\n subscription-manager repos --enable \n To enable custom repositories:\n yum-config-manager --enable 

0 回复 有任何疑惑可以回复我~
  • 提问者 小小酥麻 #1
    老师啥时候可以帮忙解决一下啊,一键部署4天了,都没完成!
    回复 有任何疑惑可以回复我~ 2021-12-07 22:41:47
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信