infOpen.openjdk-jdk

openjdk-jdk

CI Mergify Status Updates Python 3 Ansible Role

This role installs the openjdk-jdk package.

Requirements

To use this role, you need Ansible version 2.8 or higher. The necessary platform information can be found in the metadata file.

Testing

This role uses Molecule for testing.

Tests are run in Docker for local setups and GitHub Actions. If you want to use a different testing backend, check the Molecule documentation.

Currently, tests are performed on:

  • CentOS 7
  • CentOS 8
  • Debian Buster
  • Debian Stretch
  • Ubuntu Bionic
  • Ubuntu Focal

and use:

  • Ansible versions 2.8.x and 2.9.x.

Running tests

Using Docker driver

To run tests, use the following command:

$ tox

You can also set Molecule options and commands with environment variables:

  • MOLECULE_OPTIONS (Default: "--debug")
  • MOLECULE_COMMAND (Default: "test")

Example:

$ MOLECULE_OPTIONS='' MOLECULE_COMMAND=converge tox

Role Variables

Default Role Variables

# General package 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

Default Variables for Debian OS Family

_openjdk_jdk_packages:
  - name: "openjdk-{{ openjdk_jdk_version }}-jdk"

Default Variables for Debian Jessie

_openjdk_jdk_version: 7

Default Variables for Ubuntu Trusty

_openjdk_jdk_version: 7

Default Variables for Ubuntu Xenial

_openjdk_jdk_version: 8

Dependencies

There are no dependencies.

Example Playbook

Here's an example playbook to use this role:

- hosts: servers
  roles:
    - { role: infOpen.openjdk-jdk }

License

This project is licensed under the MIT License.

Author Information

Alexandre Chaussier (for Infopen company)

Informazioni sul progetto

Ansible role to install and configure openjdk-jdk

Installa
ansible-galaxy install infOpen.openjdk-jdk
Licenza
mit
Download
6.6k
Proprietario
Infopen company