@@ -47,14 +47,14 @@ DISCLAIMER: usage of any version of this role implies you have accepted the
47
47
- ** oracle_java_set_as_default** : flag to indicate if this play should set Java as default (default: ` yes ` ).
48
48
- ** oracle_java_use_defaults** : flag to indicate you want to use defaults set in the ` defaults ` directory (default: ` yes ` ).
49
49
** WARNING** . setting this to ` no ` will require the user to pass all of the distribution variables.
50
- See ` * | Java 8 ` examples in the _ Playbooks_ section.
50
+ See ` * | Java 11 ` examples in the _ Playbooks_ section.
51
51
52
52
### Debian
53
53
54
54
** WARNING** to override ** any** of the following variables (even if it's only one),
55
55
you'll need to set ` oracle_java_use_defaults: no ` and override ** all** of their values since
56
56
OS family defaults will no longer be loaded.
57
- See ` debian | Java 8 ` example in the _ Playbooks_ section.
57
+ See ` debian | Java 11 ` example in the _ Playbooks_ section.
58
58
59
59
- ** oracle_java_apt_repository** : Personal Package Archive (PPA) from where to install Java.
60
60
- ** oracle_java_apt_repository_key** : PPA repository key.
@@ -69,7 +69,7 @@ See `debian | Java 8` example in the _Playbooks_ section.
69
69
** WARNING** to override ** any** of the following variables (even if it's only one),
70
70
you'll need to set ` oracle_java_use_defaults: no ` and override ** all** of their values since
71
71
OS family defaults will no longer be loaded.
72
- See ` debian | ubuntu | Java 8 ` example in the _ Playbooks_ section.
72
+ See ` debian | ubuntu | Java 11 ` example in the _ Playbooks_ section.
73
73
74
74
- ** oracle_java_apt_repository** : Personal Package Archive (PPA) from where to install Java.
75
75
- ** oracle_java_cache_valid_time** : the amount of time in seconds the apt cache is valid.
@@ -84,7 +84,7 @@ See `debian | ubuntu | Java 8` example in the _Playbooks_ section.
84
84
** WARNING** to override ** any** of the following variables (even if it's only one),
85
85
you'll need to set ` oracle_java_use_defaults: no ` and override ** all** of their values since
86
86
OS family defaults will no longer be loaded.
87
- See ` redhat | centos 7 | Java Other ` example in the _ Playbooks_ section.
87
+ See ` redhat | centos 7 | Java 11 ` example in the _ Playbooks_ section.
88
88
89
89
- ** oracle_java_dir_source** : directory where to store the RPM files.
90
90
- ** oracle_java_download_timeout** : download timeout, in seconds.
@@ -102,40 +102,56 @@ See `redhat | centos 7 | Java Other` example in the _Playbooks_ section.
102
102
roles :
103
103
- role : ansiblebit.oracle-java
104
104
105
+ # debian | Java 12
106
+ - hosts : servers
107
+ roles :
108
+ - role : ansiblebit.oracle-java
109
+
105
110
# debian | Java 11
106
111
- hosts : servers
107
112
roles :
108
113
- role : ansiblebit.oracle-java
114
+ oracle_java_deb_package : ' oracle-java11-installer'
115
+ oracle_java_debconf_package_default : ' oracle-java11-set-default'
116
+ oracle_java_home : " /usr/lib/jvm/java-11-oracle"
109
117
110
118
# # explicitely passing default parameters
111
119
- hosts : servers
112
120
roles :
113
121
- role : ansiblebit.oracle-java
114
122
123
+ # debian | ubuntu | Java 12
124
+ - hosts : servers
125
+ roles :
126
+ - role : ansiblebit.oracle-java
127
+
115
128
# debian | ubuntu | Java 11
116
129
- hosts : servers
117
130
roles :
118
131
- role : ansiblebit.oracle-java
132
+ oracle_java_deb_package : ' oracle-java11-installer'
133
+ oracle_java_debconf_package_default : ' oracle-java11-set-default'
134
+ oracle_java_home : " /usr/lib/jvm/java-11-oracle"
119
135
120
- # redhat | centos 7 | Java 11
136
+ # redhat | centos 7 | Java 12
121
137
- hosts : servers
122
138
roles :
123
139
- role : ansiblebit.oracle-java
124
140
125
- # redhat | centos 7 | Java Other
141
+ # redhat | centos 7 | Java 11
126
142
- hosts : servers
127
143
roles :
128
144
- role : ansiblebit.oracle-java
129
145
oracle_java_use_defaults : no
130
146
oracle_java_dir_source : ' /usr/local/src'
131
147
oracle_java_download_timeout : 60
132
- oracle_java_rpm_filename : ' jdk-8u201-linux-x64 .rpm'
148
+ oracle_java_rpm_filename : ' jdk-11.0.3_linux-x64_bin .rpm'
133
149
oracle_java_home : ' /usr/java/default'
134
150
oracle_java_os_supported : yes
135
- oracle_java_rpm_url : ' https://download.oracle.com/path/to/file .rpm'
151
+ oracle_java_rpm_url : ' https://download.oracle.com/otn/java/jdk/11.0.3+12/37f5e150db5247ab9333b11c1dddcd30/jdk-11.0.3_linux-x64_bin .rpm'
136
152
oracle_java_rpm_validate_certs : yes
137
153
oracle_java_set_as_default : no
138
- oracle_java_version_string : 1.8.0_201
154
+ oracle_java_version_string : 11.0.3
139
155
` ` `
140
156
141
157
Use ` --skip-tags=debug` if you want to suppress debug information.
@@ -175,5 +191,4 @@ vagrant destroy bionic64.vagrant.dev
175
191
176
192
## Links
177
193
178
- - [ launchpad > WebUpd8 > Oracle Java (JDK) 8 / 9 Installer PPA] ( https://launchpad.net/~webupd8team/+archive/ubuntu/java )
179
194
- [ launchpad > Linux Uprising > Oracle Java] ( https://launchpad.net/~linuxuprising/+archive/ubuntu/java )
0 commit comments