我试图在不使用互联网的情况下使用 ansible-galaxy cli 获取 src 和版本详细信息,例如:
[ansible@server exam]$ ansible-galaxy info bennojoy.ntp
Role: bennojoy.ntp
description: ansible role ntp
active: True
commit:
commit_message:
commit_url:
company: AnsibleWorks
created: 2013-12-19T01:25:11.835644Z
dependencies: []
download_count: 110946
forks_count: 0
galaxy_info:
author: Benno Joy
categories: ['development']
company: AnsibleWorks
license: BSD
min_ansible_version: 1.4
platforms: [{'name': 'EL', 'versions': [5, 6]}, {'name': 'Fedora', 'v>
github_branch: master
github_repo: ntp
github_user: bennojoy
id: 4
imported: None
install_date: Sun Jul 26 10:25:09 2020
installed_version:
is_valid: True
issue_tracker_url: https://github.com/bennojoy/ntp/issues
license: BSD
min_ansible_version: 1.4
modified: 2018-06-30T00:28:28.738481Z
open_issues_count: 0
path: ('/home/ansible/.ansible/roles', '/usr/share/ansible/roles', '/etc/ansi>
role_type: ANS
stargazers_count: 24
travis_status_url:
我无法从上面获取 src 和版本。我只能在安装时获得 src 详细信息,如下所示:
[ansible@server 考试]$ ansible-galaxy install bennojoy.ntp
- 从https://github.com/bennojoy/ntp/archive/master.tar.gz下载角色
- 将 bennojoy.ntp 提取到 /home/ansible/.ansible/roles/bennojoy.ntp
- bennojoy.ntp 安装成功
在这种情况下,src 是https://github.com/bennojoy/ntp/archive/master.tar.gz。我需要通过网站查看角色可用的版本。我想检查我是否只能通过 cli 仅通过发出一些命令来执行此操作?