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
+9-8
Original file line number
Diff line number
Diff line change
@@ -24,13 +24,11 @@ These instructions will get you a copy of the role for your Ansible playbook.
24
24
25
25
Once launched, it will install Java using Debian or RHEL packages.
26
26
27
-
**DISCLAIMER:** Because a [issue in Debian Jessie/backport repositories](https://www.lucas-nussbaum.net/blog/?p=947) we decided to follow the workaround of adding **Acquire::Check-Valid-Until no** to Debian Jessie configuration while the issue is not solved, with concerns about security it implies. The other option was removing Debian 8 support. Proceed with caution.
28
-
29
27
### Prerequisities
30
28
31
29
To use this role as dependency in your playbook, prerequisites below:
32
30
33
-
Ansible 2.9.x.x version installed.
31
+
Ansible >=2.9.0 version installed.
34
32
Inventory destination should be a Debian/Ubuntu or CentOS environment.
35
33
36
34
For testing purposes you will need [Python 3.7+](https://www.python.org/downloads/release/python-377/), [Pipenv](https://github.com/pypa/pipenv).
@@ -42,15 +40,15 @@ Create or add to your roles dependency file (e.g requirements.yml):
42
40
```yml
43
41
- src: http://github.com/idealista/java_role.git
44
42
scm: git
45
-
version: 6.0.0
43
+
version: 7.0.0
46
44
name: java
47
45
```
48
46
49
47
or using [Ansible Galaxy](https://galaxy.ansible.com/idealista/java_role/) as origin if you prefer:
`DOCKER_IMAGE`: Currently supporting: `stretch`/`buster` to select between Debian versions, `xenial`/`bionic`/`focal` to select between Ubuntu versions, and `7`/`8` to select a CentOS version.
85
+
`DOCKER_IMAGE`: Currently supporting: `stretch`/`buster/bullseye` to select between Debian versions, `xenial`/`bionic`/`focal` to select between Ubuntu versions, and `7`/`8` to select a CentOS version.
88
86
`JDK_VENDOR`: Currently supporting `openjdk`/ `adoptopenjdk`/`corretto`
89
87
90
88
For instance:
@@ -108,6 +106,8 @@ Operative System | OpenJDK major release
108
106
Debian Stretch | `8` (default)
109
107
Debian Stretch | `11`
110
108
Debian Buster | `11` (default)
109
+
Debian Bullseye | `17`
110
+
Debian Bullseye | `11` (default)
111
111
Ubuntu Xenial | `8`
112
112
Ubuntu Xenial | `9` (default)
113
113
Ubuntu Bionic | `8`
@@ -128,7 +128,7 @@ Other OpenJDK implementations out of GNU/Linux distributions streams are not off
128
128
129
129
```sh
130
130
$ pipenv sync
131
-
$ DOCKER_IMAGE_BASE=(debian:stretch-slim|debian:buster-slim|amd64/ubuntu:xenial|amd64/ubuntu:bionic|amd64/ubuntu:focal|centos:7|centos:8) JDK_VENDOR=(`java_jdk_version` openjdk|adoptopenjdk|corretto) JDK_MAJOR=(`java_open_jdk_version_major` see [.travis.yml](.travis.yml) file to check supported versions) JDK_VERSION=(`java_open_jdk_version` see [.travis.yml](.travis.yml) file to check supported versions) pipenv run molecule test
131
+
$ DOCKER_IMAGE_BASE=(debian:stretch-slim|debian:buster-slim|debian_bullseye-slim|amd64/ubuntu:xenial|amd64/ubuntu:bionic|amd64/ubuntu:focal|centos:7|centos:8) JDK_VENDOR=(`java_jdk_version` openjdk|adoptopenjdk|corretto) JDK_MAJOR=(`java_open_jdk_version_major` see [.travis.yml](.travis.yml) file to check supported versions) JDK_VERSION=(`java_open_jdk_version` see [.travis.yml](.travis.yml) file to check supported versions) pipenv run molecule test
132
132
```
133
133
**Note:** JDK_VENDOR is an optional parameter, if not defined this role will use openjdk.
134
134
**Note:** JDK_VERSION is an optional parameter, if not defined this role will install the latest available package for the selected Java major release.
@@ -138,7 +138,8 @@ See [molecule directory](https://github.com/idealista/java_role/tree/master/mole
0 commit comments