Install openjdk-jdk package.
This role requires Ansible 2.8 or higher, and platform requirements are listed in the metadata file.
This role use Molecule to run tests.
Local and Github Actions tests run tests on Docker by default. See molecule documentation to use other backend.
Currently, tests are done on:
- CentOS 7
- CentOS 8
- Debian Buster
- Debian Stretch
- Ubuntu Bionic
- Ubuntu Focal
and use:
- Ansible 2.8.x
- Ansible 2.9.x
$ tox
You can also configure molecule options and molecule command using environment variables:
MOLECULE_OPTIONS
Default: "--debug"MOLECULE_COMMAND
Default: "test"
$ MOLECULE_OPTIONS='' MOLECULE_COMMAND=converge tox
# General packages variables
openjdk_jdk_packages: "{{ _openjdk_jdk_packages }}"
openjdk_jdk_version: "{{ _openjdk_jdk_version }}"
# APT specific variables
openjdk_jdk_apt_update_cache: True
openjdk_jdk_apt_cache_valid_time: 3600
_openjdk_jdk_packages:
- name: "openjdk-{{ openjdk_jdk_version }}-jdk"
_openjdk_jdk_version: 7
_openjdk_jdk_version: 7
_openjdk_jdk_version: 8
None
- hosts: servers
roles:
- { role: infOpen.openjdk-jdk }
MIT
Alexandre Chaussier (for Infopen company)
- https://www.infopen.pro
- a.chaussier [at] infopen.pro