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
Copy file name to clipboardExpand all lines: README.md
+85-29Lines changed: 85 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,38 +44,55 @@ DISCLAIMER: usage of any version of this role implies you have accepted the
44
44
## Role Variables
45
45
46
46
-**debug**: flag to make role more verbose.
47
-
-**oracle_java_set_as_default**: make the newly installed Java the default runtime environment (default: `yes`).
48
47
-**oracle_java_os_supported**: role internal variable to check if a OS family is supported or not.
48
+
-**oracle_java_set_as_default**: flag to indicate if this play should set Java as default (default: `yes`).
49
+
-**oracle_java_use_defaults**: flag to indicate you want to use defaults set in the `defaults` directory (default: `yes`).
50
+
**WARNING**. setting this to `no` will require the user to pass all of the distribution variables.
51
+
See `* | Java 8` examples in the _Playbooks_ section.
49
52
50
53
### Debian
51
54
52
-
-**oracle_java_apt_repository**: Personal Package Archive (PPA) from where to install Java (default: `deb http://ppa.launchpad.net/linuxuprising/java/ubuntu bionic main`).
-**oracle_java_home**: the location of the Java home directory (default: `/usr/lib/jvm/java-10-oracle`).
67
-
-**oracle_java_state**:** the package state (see Ansible apt module for more information) (default: `latest`).
70
+
**WARNING** to override **any** of the following variables (even if it's only one),
71
+
you'll need to set `oracle_java_use_defaults: no` and override **all** of their values since
72
+
OS family defaults will no longer be loaded.
73
+
See `debian | ubuntu | Java 8` example in the _Playbooks_ section.
74
+
75
+
-**oracle_java_apt_repository**: Personal Package Archive (PPA) from where to install Java.
76
+
-**oracle_java_cache_valid_time**: the amount of time in seconds the apt cache is valid.
77
+
-**oracle_java_deb_package**: name of debian package.
78
+
-**oracle_java_debconf_package_default**: name of debconf package to set default.
79
+
-**oracle_java_home**: the location of the Java home directory.
80
+
-**oracle_java_state**:** the package state (see Ansible apt module for more information).
68
81
69
82
### Redhat-only
70
83
71
-
-**oracle_java_dir_source**: directory where to store the RPM files (default: `/usr/local/src`).
72
-
-**oracle_java_download_timeout**: download timeout, in seconds (default: `60`).
73
-
-**oracle_java_download_url**: where to download the rpm from (default: `http://download.oracle.com/otn-pub/java/jdk/10.0.2+13/19aef61b38124481863b1413dce1855f/jdk-10.0.2_linux-x64_bin.rpm`).
74
-
-**oracle_java_home**: the location of the Java home directory (default: `/usr/java/default`).
75
-
-**oracle_java_rpm_filename**: file name used for the download destination (default: `jdk-10.0.2_linux-x64_bin.rpm`).
76
-
-**oracle_java_rpm_validate_certs**: flag to indicate if you want SSL certificate validation (default: `yes`).
77
-
-**oracle_java_version**: the Oracle JDK version to be installed (default: `10`).
78
-
-**oracle_java_version_string**: the Java version string to verify installation against (default: `1.{{ oracle_java_version }}.0_u{{ oracle_java_version_update }}`).
84
+
**WARNING** to override **any** of the following variables (even if it's only one),
85
+
you'll need to set `oracle_java_use_defaults: no` and override **all** of their values since
86
+
OS family defaults will no longer be loaded.
87
+
See `redhat | centos 7 | Java 8` example in the _Playbooks_ section.
88
+
89
+
-**oracle_java_dir_source**: directory where to store the RPM files.
90
+
-**oracle_java_download_timeout**: download timeout, in seconds.
91
+
-**oracle_java_home**: the location of the Java home directory.
92
+
-**oracle_java_rpm_filename**: file name used for the download destination.
93
+
-**oracle_java_rpm_url**: where to download the rpm from.
94
+
-**oracle_java_rpm_validate_certs**: flag to indicate if you want SSL certificate validation.
95
+
-**oracle_java_version_string**: the Java version string to verify installation against.
79
96
80
97
## Playbooks
81
98
@@ -85,31 +102,70 @@ DISCLAIMER: usage of any version of this role implies you have accepted the
0 commit comments