Git Product home page Git Product logo

Comments (3)

geerlingguy avatar geerlingguy commented on August 16, 2024

@lioramilbaum - This role's installation task just verifies a particular java_packages set is installed (see https://github.com/geerlingguy/ansible-role-java/blob/master/tasks/setup-Debian.yml#L3) — for upgrading from Java 7 to Java 8, my preferences would be the following (in order of best solution to least likely to work easily):

  1. Build the server fresh, from a minimal base, so you can just install Java 8 and be done with it.
  2. In your playbook, have a pre_task or included task file that uninstalls Java 7. Then this role can install Java 8.
  3. Propose/send a PR for allowing this role to use different state parameters for the installation so the role could maybe be made to upgrade Java in place. This may or may not be easy to do (since Java is a bit different than other software in terms of configuration and package naming...).

from ansible-role-java.

lmilbaum avatar lmilbaum commented on August 16, 2024

I would consider options 1 and 2.
Option 3 is unclear to me.

from ansible-role-java.

geerlingguy avatar geerlingguy commented on August 16, 2024

In those cases, the best option is determined by what kind of infrastructure setup you have. If your servers are more or less disposable, I'd go with 1. If not, I'd go with 2 (or create a separate small playbook that just uninstalls Java in preparation for your playbook that then installs the right version of Java using this role).

from ansible-role-java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.