You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| oracle_java_installed | fact set by this role that contains a flag that indicates if Java is installed on the host. |
43
+
| oracle_java_version_installed | fact set by this role that contains the string of the Java version installed in the system. |
44
+
45
+
19
46
## Role Variables
20
47
21
48
| variable | default | description |
22
49
|:--------:|:-------:|:------------|
23
-
|oracle_java_version|8| the Oracle JDK version to be installed. |
50
+
|oracle_java_set_as_default|no|make the newly installed Java the default runtime environment. |
24
51
| oracle_java_state | latest | the package state (see Ansible apt module for more information). |
25
-
| oracle_java_default | no | make the newly installed Java the default runtime environment. |
52
+
| oracle_java_version | 8 | the Oracle JDK version to be installed. |
53
+
| oracle_java_version_update | 45 | the Oracle JDK version update. |
54
+
| oracle_java_version_build | 14 | the Oracle JDK version update build number. |
55
+
| oracle_java_version_string | 1.{{ oracle_java_version }}.0_u{{ oracle_java_version_update }} | the Java version string to verify installation against. |
56
+
| oracle_java_os_supported variable | - | role internal variable to check if a OS family is supported or not. |
57
+
58
+
59
+
### Debian-only
60
+
61
+
| variable | default | description |
62
+
|:-:|:-:|:--|
63
+
| launchpad_ppa_webupd8_cache_valid_time | 3600 | the amount of time in seconds the apt cache is valid. |
26
64
| oracle_java_cache_valid_time | 3600 | the amount of time in seconds the apt cache is valid. |
65
+
| oracle_java_state | latest | the package state (see Ansible apt module for more information). |
66
+
| oracle_java_home | /usr/lib/jvm/java-{{ oracle_java_version }}-oracle | the location of the Java home directory. |
67
+
68
+
69
+
### Redhat-only
70
+
71
+
| variable | default | description |
72
+
|:-:|:-:|:--|
73
+
| oracle_java_dir_source | /usr/local/src | directory where to store RPMs (Redhat-only). |
74
+
| oracle_java_home | /usr/java/jdk1.{{ oracle_java_version }}.0_{{ oracle_java_version_update }} | the location of the Java home directory. |
75
+
| oracle_java_rpm_filename | jdk-{{ oracle_java_version }}u{{ oracle_java_version_update }}-linux-x64.rpm | the filename of the RPM. |
76
+
| oracle_java_rpm_url |http://download.oracle.com/otn-pub/java/jdk/{{ oracle_java_version }}u{{ oracle_java_version_update }}-b{{ oracle_java_version_build }}/{{ oracle_java_rpm_filename }} | the URL where the RPM can be downloaded from. |
27
77
28
78
29
79
## Dependencies
@@ -37,11 +87,23 @@ For Debian and Ubuntu this role depends on:
0 commit comments