https://github.com/antmelekhin/ansible-role-java
An Ansible role to install the Java package.
https://github.com/antmelekhin/ansible-role-java
ansible ansible-role corretto debian java openjdk rhel
Last synced: 5 months ago
JSON representation
An Ansible role to install the Java package.
- Host: GitHub
- URL: https://github.com/antmelekhin/ansible-role-java
- Owner: antmelekhin
- License: mit
- Created: 2023-10-18T16:36:38.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-03T17:04:57.000Z (over 1 year ago)
- Last Synced: 2025-06-09T01:03:35.548Z (about 1 year ago)
- Topics: ansible, ansible-role, corretto, debian, java, openjdk, rhel
- Language: Jinja
- Homepage: https://galaxy.ansible.com/ui/standalone/roles/antmelekhin/java/
- Size: 48.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Java
====
An Ansible role to install the Java package. This role installs the `OpenJDK` or `Amazon Corretto` distribution.
Requirements
------------
- Supported version of Ansible: 2.12 and higher. Systems with Python versions below than 3.7 are not compatible with ansible-core 2.17 (see [ansible/ansible#83357](https://github.com/ansible/ansible/issues/83357#issuecomment-2150254754)).
- Supported platforms:
- Amazon Linux
- 2
- 2023
- Debian
- 10
- 11
- 12
- Fedora
- 39
- 40
- RHEL
- 7
- 8
- 9
- Ubuntu
- 18.04
- 20.04
- 22.04
Role Variables
--------------
All variables that can be overridden are stored in the [defaults/main.yml](https://github.com/antmelekhin/ansible-role-java/blob/main/defaults/main.yml) file.
Please refer to the [meta/argument_specs.yml](https://github.com/antmelekhin/ansible-role-java/blob/main/meta/argument_specs.yml) file for a description of the available variables.
Similarly, descriptions and defaults for preset variables can be found in the [vars/main.yml](https://github.com/antmelekhin/ansible-role-java/blob/main/vars/main.yml) file.
Dependencies
------------
None.
Example Playbook
----------------
Install the `Java` package:
```yaml
---
- name: 'Install the Java package'
hosts: all
roles:
- role: antmelekhin.java
```
License
-------
MIT
Author Information
------------------
Melekhin Anton.