我得到了下面的错误,它与tar文件一起工作,我需要克隆和安装该文件。根据ansible文档,我们可以使用以下方法进行安装。
guide.html#installing-a-collection-from-a-git-repository
为什么在我的案子里要tar文件?
根@oc1546875**4 git@github.i_m.com:samnanajeeb/test_collections.git收集安装collections_repository1#进程安装依赖映射错误!无效的集合名'git@github.i_m.com',名称必须是格式。请确保命名空间和集合名称包含来自a-zA-Z0-9_ only的字符。
根@oc1546875**4 collections_repository2# ansible收集安装repository1.git进程安装依赖映射错误!'/root/.ansible/tmp/ansible-local-7328qnvhfs/tmpOWt66o/collections_repository1SxEx78.git‘中的集合工件不是有效的tar文件。
发布于 2021-02-09 16:54:42
医生们指定必须在https:前缀加上git+https:,以便通知ansible,URL不仅生成字节,而且必须安装git。根据我在ansible编码实践中的经验,我猜想您的第一个错误是由它们硬编码github.com引起的,所以尝试git+ssh://git@github.im.com/samn.../test_collections.git (出于同样的原因)建议ansible需要克隆路径。
https://stackoverflow.com/questions/66098332
复制相似问题