ChristopherDavenport.universal-java

Universal Java JDK Installer

Build Status

This tool is designed to install a Java Development Kit (JDK) on almost any system.

Please let me know if you encounter any problems.

Requirements


None

Role Variables

You can choose between Open or Oracle Java:

java_type: Open

For Oracle, you can select version 7 or 8. For Open, you can choose version 7, 8, or 9:

java_version: "8"

Since the JAVA_HOME variable depends on the operating system, this tool sets it up for most builds. However, it gets included dynamically, so it may not be accessible from other roles.

If you want to set your own JAVA_HOME, you can specify it with this variable:

java_home: ${LOCATION_OF_CHOICE}

You can choose whether to install a script that sets the JAVA_HOME environment variable:

java_home_install_script: True

This is the name of the script that will be added to /etc/profile.d/:

java_home_script_name: java_home.sh

Temporary storage location for installation files:

java_tmp_storage: /tmp/java_install

Dependencies

None

Example Playbook

Here is an example of how to use this role (you can pass in variables as needed):

    - hosts: servers
      roles:
         - ChristopherDavenport.universal-java

License

MIT

Author Information

This role was created by ChristopherDavenport in 2016.

Informazioni sul progetto

Universal Java Installer For Both OpenJDK and Oracle

Installa
ansible-galaxy install ChristopherDavenport.universal-java
Licenza
mit
Download
11.1k
Proprietario
Functional Programmer (he / him)