On Thu, 18 Feb 2021 at 16:15, [email protected] <[email protected]> wrote:
>
> Is there a way to install a specic version of JDK8 on CentOS using ansible? 
> we are looking to pin versions of JDK to
>
> java-1.8.0-openjdk-devel.x86_64 1:1.8.0.282.b08-1.el7_9
>
Can you selected a version of that particular package?

I worked with Azul JDK (free on Azure) and to achieve version lock I
used yum versionlock:
https://www.man7.org/linux/man-pages/man1/yum-versionlock.1.html

Thanks to versionlock you can still run "yum update".

Wawrzek

PS. I'll try to find an example of passing version to the yum module,
but it should be in docs.
-- 
Dr  Wawrzyniec NiewodniczaƄski    or Wawrzek for short
  PhD in Quantum Chemistry  & MSc in Molecular Engineering
   WWW: http://wawrzek.name E-MAIL: [email protected]
      Linux User #177124

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAC7-vpCj0v%2BH96DX3xiPW2ytyCpiWQguHk67AsQH1WpU0V82DA%40mail.gmail.com.

Reply via email to