这是官方推荐的标准方法,使用 ansible-galaxy 命令即可一键下载安装。
安装命令:
如果你使用自动化脚本管理,可以将依赖写入 requirements.yml 文件,然后统一安装。
requirements.yml 文件内容:
如果你想查看源码、贡献代码或了解更详细的开发文档,可以访问其 GitHub 仓库:
GitHub 地址:https://github.com/H3C/h3c_open.comware
这个网址打不开呢
# 安装最新版
ansible-galaxy collection install h3c_open.comware
# 安装指定版本(如 2.0.0)
ansible-galaxy collection install h3c_open.comware:==2.0.0
# 安装到指定目录(非默认路径)
ansible-galaxy collection install h3c_open.comware -p ./collections
~/.ansible/collections/ansible_collections/h3c_open/comware/git clone https://github.com/H3C/h3c_open.comware.git
# 进入解压后的目录
cd h3c_open.comware-main
# 本地安装
ansible-galaxy collection install .
requirements.yml 文件,统一管理依赖集合:collections:
- name: h3c_open.comware
version: latest # 可指定具体版本,如 2.0.0
source: ***.***
ansible-galaxy collection install -r requirements.yml
ansible-galaxy collection download h3c_open.comware
h3c_open-comware-2.0.0.tar.gz)拷贝到目标机器,执行安装:ansible-galaxy collection install h3c_open-comware-2.0.0.tar.gz
# 查看已安装的集合
ansible-galaxy collection list | grep h3c_open.comware
# 查看集合详情(含版本、路径)
ansible-galaxy collection info h3c_open.comware
pyhpecw7(Comware Python 库),可通过 pip install pyhpecw7 安装。
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
这个网址打不开呢