0

I am trying to get the src and version details using the ansible-galaxy cli without using the internet for example :

[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:

I am not able to get the src and version from the above. I am only able to get the src details upon installing as shown below :

[ansible@server exam]$ ansible-galaxy install bennojoy.ntp

In this case the src is https://github.com/bennojoy/ntp/archive/master.tar.gz. The version available for a role i need to check through the website. I would like to check if i can do this only via cli only by issuing some command instead ?

abduls85
  • 548
  • 8
  • 15
  • Please [edit your question](https://stackoverflow.com/posts/63099059/edit) and fix the formatting – mdaniel Jul 26 '20 at 17:47
  • Done editing... – abduls85 Jul 27 '20 at 13:45
  • Now that I can read the output, what's wrong with the 3 `github_branch:`, `github_repo:` and `github_user:` fields present in the output? It looks like it was installed using exactly the same "just give me what's current" style instead of using a tag or git sha – mdaniel Jul 27 '20 at 15:57

0 Answers0