Install a specific version of a role with Ansible Galaxy

893 Views Asked by At

I'm installing an ansible role with:

ansible-galaxy install geerlingguy.java

But this command install the latest version.

I need to install an old version like:

ansible-galaxy install geerlingguy.java:1.10.0

But this command launches this error:

ansible-galaxy install geerlingguy.java:1.10.0
- downloading role '0', owned by geerlingguy.java%3A1.10
[WARNING]: - geerlingguy.java:1.10.0 was NOT installed successfully: - sorry, geerlingguy.java:1.10.0 was not found on https://galaxy.ansible.com/api/.
ERROR! - you can use --ignore-errors to skip failed roles and finish processing the list.
1

There are 1 best solutions below

0
Catalan Jarvis On BEST ANSWER

As β.εηοιτ.βε indicated, the correct command was:

ansible-galaxy install geerlingguy.java,1.10.0