Score:0

How to list the different java versions installed in a Linux server using Ansible ? How to switch from one version to another using ansible?

cn flag

I want to know whether two different Java versions are installed in a Linux machine. In my case I want to see whether Java 8 and Java 17 is installed in the machine first, and if the Java 8 is the default one, I want to switch to the Java 17 version

U880D avatar
ca flag
As aready mentioned in the comments under [How to switch Java versions using Ansible?](https://stackoverflow.com/questions/72108916/), currently there is far to less information given for a meaningful answer. Therefore you may need to provide much more details and describe your specific environment.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.