ansible - 如何修复错误无法使用 maven_artifact 模块 ansible 从 nexus 存储库下载工件
问题描述
当我尝试使用我的剧本 ansible 中的 ansible 模块 maven_artifact 从 nexus 管理器存储库 3 下载工件(ear)时遇到问题。 TASK【下载神器ewallet-ear form Nexus】**************************************** ****************************************************** **************** 致命:[ip.ip.ip.ip]:失败!=> {"changed": false, "msg": "未能下载工件 com.aebs.ewallet:ewallet-ear:ear:1.0[52] 因为请求失败:<urlopen 错误 [Errno -2] Nom ou service inconnu>对于 URL http://nexus.beyn.dz:8081/repository/ewallet-wimpay-release/com/aebs/ewallet/ewallet-ear/1.0[52]/ewallet-ear-1.0[52].ear" }
这是我的剧本 ansible :
名称:部署电子钱包 wimpay 主机:app_213 任务:
- 名称:下载神器 ewallet-ear 表单 Nexus maven_artifact: group_id: com.aebs.ewallet artifact_id: ewallet-ear 版本:1.0[52] 扩展名:ear repository_url: 'http://nexus.beyn.dz:8081/repository/ewallet -wimpay-release' 用户名:****** 密码:****** 目标:/home/glassfish/
解决方案
推荐阅读
- raku - Perl6 正则表达式与文件名不匹配结束 $ 字符
- python - percentile across dataframes, with missing values
- hyperledger-fabric - How retrieve all block transactions in the Hyperledger fabric?
- css - 为什么 wp 子主题中的 Css 文件代码写成注释行?
- python - Check how many unique sub lists in a list
- javascript - 用于循环异步等待的 Firebase 函数
- pandas - How do I get data out of XlsxWriter?
- fortran - How to translate from EQUIVALENCE to index offset
- php - PHP - 尝试 POST 到后端并返回 500 错误?
- shell - 在 Makefile 使用 Docker 容器中定义的环境变量来运行命令