Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add git commit hash to ansible --version (or --version -v) #12641

Closed
fabianbadoi opened this issue Oct 6, 2015 · 1 comment
Closed

Add git commit hash to ansible --version (or --version -v) #12641

fabianbadoi opened this issue Oct 6, 2015 · 1 comment
Labels
feature This issue/PR relates to a feature request.

Comments

@fabianbadoi
Copy link

I've been using ansible for a few months now and have just had a problem after upgrading and had to downgrade back.

Unfortunately, I didn't know which commit to checkout and I spent a fair deal of time trying to find one that worked. A colleague of mine had a working installation, but didn't know which commit. Both his installation and all the versions I had had $ ansible --version -> 2.0.0.

I'd like to propose adding the git commit hash to the output of --version to aid in debugging upgrade problems, especially since the "What version to pick?" section of the installation guide recommends installing from the devel branch.

A list of previously installed versions with the time of updating would be even better.

Thank you for your time.

@bcoca
Copy link
Member

bcoca commented Oct 12, 2015

already there:

ansible 2.0.0 (devel de155c6b14) last updated 2015/10/12 10:20:55 (GMT -400)
  lib/ansible/modules/core: (detached HEAD 79e253053a) last updated 2015/10/09 12:34:13 (GMT -400)
  lib/ansible/modules/extras: (detached HEAD 205115ea1f) last updated 2015/10/09 12:34:15 (GMT -400)
  config file = /etc/ansible/ansible.cfg
  configured module search path = /home/bcoca/work/ansible-modules-core:/home/bcoca/work/ansible-modules-extras

@bcoca bcoca closed this as completed Oct 12, 2015
@ansibot ansibot added feature This issue/PR relates to a feature request. and removed feature_idea labels Mar 2, 2018
@ansible ansible locked and limited conversation to collaborators Apr 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature This issue/PR relates to a feature request.
Projects
None yet
Development

No branches or pull requests

3 participants