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

ansible-galaxy downloas old version (v4.14.2) of ansiblebit/oracle-java (instead of lastest 5.14.4) #39

Closed
roumano opened this issue Apr 14, 2017 · 4 comments

Comments

@roumano
Copy link

roumano commented Apr 14, 2017

ansible-galaxy -vvv install ansiblebit.oracle-java
Using /etc/ansible/ansible.cfg as config file
Opened /home/fedora/.ansible_galaxy
Installing role ansiblebit.oracle-java
Opened /home/fedora/.ansible_galaxy

cat ansiblebit.oracle-java/meta/.galaxy_install_info
{install_date: 'Fri Apr 14 12:42:57 2017', version: v4.14.2}

maybe it's due to the letter "v" on the version ?

@steenzout
Copy link
Member

@roumano I think that's the problem.

I've tried to clear the old v versions but galaxy is stubborn: ansible/galaxy-issues#251.

I suggest using a specific version to workaround your current problem plus it's safer in the long run (you don't want to end up breaking a playbook because you got a newer version of the role).

@steenzout
Copy link
Member

@roumano just to be clear, you can install a specific version with a requirements.yml like:

- src: git@github.com:ansiblebit/oracle-java.git
  scm: git
  name: ansiblebit.oracle-java
  version: 5.14.4

or

- name: ansiblebit.oracle-java
  version: 5.14.4

and then executing:

$ ansible-galaxy install -r requirements.yml

I actually recommend using this way to install roles.

@steenzout steenzout added the fix label Apr 21, 2017
@steenzout
Copy link
Member

ansible fixed the issue:

$ ansible-galaxy -vv install ansiblebit.oracle-java
No config file found; using defaults
- downloading role 'oracle-java', owned by ansiblebit
- downloading role from https://github.com/ansiblebit/oracle-java/archive/5.14.4.tar.gz
- extracting ansiblebit.oracle-java to /opt/local/etc/ansible/roles/ansiblebit.oracle-java

@steenzout
Copy link
Member

please star the repo :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants