最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

azure

运维笔记admin6浏览0评论

azure

azure

Jos*_*los 6

我终于设法解决了解析动态库存的问题。我正在做以下事情:

pip install -r raw.githubusercontent./ansible-collections/azure/dev/requirements-azure.txt && \ansible-galaxy collection install azure.azcollection:1.11.0

我改变了两件事:

颠倒安装集合及其依赖项的顺序。首先我需要安装它azure.azcollection,然后是它的依赖项。安装集合本身的azure.azcollection依赖项,requirements.txt 而不是从 Github 安装。

这是工作的代码:

ansible-galaxy collection install azure.azcollection:1.11.0 && \pip install -r ~/.ansible/collections/ansible_collections/azure/azcollection/requirements-azure.txt

requirements.txt来自 GitHub 的文件raw.githubusercontent./ansible-collections/azure/dev/requirements-azure.txt和本地requirements.txt文件之间的区别在于~/.ansible/collections/ansible_collections/azure/azcollection/requirements-azure.txt包azure-mgmt-network版本。在线版本是19.1.0,本地(工作)版本是12.0.0.

bash-5.1# diff -w requirements-azure.txt ~/.ansible/collections/ansible_collections/azure/azcollection/requirements-azure.txt--- requirements-azure.txt+++ /root/.ansible/collections/ansible_collections/azure/azcollection/requirements-azure.txt@@ -19,7 +19,7 @@ azure-mgmt-monitor==3.0.0 azure-mgmt-managedservices==1.0.0 azure-mgmt-managementgroups==0.2.0-azure-mgmt-network==19.1.0+azure-mgmt-network==12.0.0 azure-mgmt-nspkg==2.0.0 azure-mgmt-privatedns==0.1.0 azure-mgmt-redis==5.0.0

azure

发布评论

评论列表(0)

  1. 暂无评论