首页 文章

Errno 14 - 安装Ansible Tower时:无法解析主机:releases.ansible.com;名称或服务未知

提问于
浏览
-2

我已按照以下步骤在CentOS(RHEL7)上安装Ansible塔(离线/无互联网):

`TASK [packages_el:移开自定义ui设置] ************************************* ************************************************** *******************跳过:[localhost] => {“已更改”:false,“skip_reason”:“条件结果为假”}

任务[packages_el:安装塔式RPM . ] **************************************** ************************************************** ************************致命:[localhost]:失败了! => {"changed":false,"msg":“https://releases.ansible.com/ansible/rpm/release/epel-7-x86_64/repodata/repomd.xml:[Errno 14] curl#6 - \ _ _ _ _ _ _ _ _ _ _ _ _ _ _ n n n . 其他镜像 . \ n \ n \ n其中一个配置的存储库失败(Ansible for Enterprise Linux 7 - x86_64),\ n和yum没有默认情况下使用它.Yum \ n然后只会忽略存储库,直到你再次永久启用它或使用--enablerepo进行临时使用:\ n \ n yum-config-manager --disable ansible \ n或\ n subscription-manager repos --disable = ansible \ n \ n 5.配置要跳过的故障存储库(如果不可用) . \ n请注意,当yum运行大多数命令时,它将尝试联系存储库 . ,\ n所以必须每次尝试失败(因此 . yum将会更慢\ n慢) . 如果这是一个非常临时的问题,这通常是一个很好的妥协:\ n \ n yum- config-manager --save --setopt = ansible.skip_if_unavailable = true \ n \ nfailure:来自ansible的repodata / repomd.xml:[Errno 256]不再需要镜像了 . \ nhttps://releases.ansible.com/ansible /转/释放/ EPEL -7- x86_64的/ repodata / R epomd.xml:[Errno 14] curl#6 - \ "Could not resolve host: releases.ansible.com; Name or service not known" \ n ", " rc ": 1, " results“:[]}重试,使用: - limit @ / opt / CDaaSApps / AnsibleTower / ansible-tower-setup-3.2.5 /install.retry

回放************************************************* ************************************************** ************************************************* localhost :ok = 30 changed = 3 unreachable = 0 failed = 1

[错误]哎呀!运行安装程序时出错 . [warn] / var / log / tower不存在 . 安装日志保存到setup.log

注意:我已经提到了Ansible官方文档:https://docs.ansible.com/ansible-tower/latest/html/quickinstall/install_script.html

1 回答

  • 0

    旁注:您是否创建了/ var / log / tower并将其chown到uid:awx的gid?我在3.1.4中引用的安装程序错误要求手动创建目录 .

    在主要问题上:检查您的/etc/yum.repos.d以获取ansible塔仓库 . 我猜它被配置为使用Redhat仓库,但它应该是捆绑的 .

相关问题