Migrated from github.com/shafiqalibhai/ansible-role-java https://galaxy.ansible.com/list#/roles/439
  • Dockerfile 100%
Find a file
2026-04-27 22:57:51 +00:00
defaults Better cross-platform compatibility, default to OpenJDK 7. 2014-11-10 17:19:15 -06:00
meta added FreeBSD support 2015-09-05 20:32:48 +02:00
tasks added FreeBSD support 2015-09-05 20:32:48 +02:00
tests Better cross-platform compatibility, default to OpenJDK 7. 2014-11-10 17:19:15 -06:00
vars added FreeBSD support 2015-09-05 20:35:45 +02:00
.travis.yml Update test. 2014-11-08 14:35:22 -06:00
Dockerfile Add Dockerfile: ansible runner with role pre-installed 2026-04-27 22:57:51 +00:00
README.md Update README with comprehensive project information 2026-04-27 20:32:52 +00:00

ansible-role-java

Overview

Installs Java for RedHat/CentOS and Debian/Ubuntu linux servers.

Detected project type: Ansible role.

This repository was migrated from upstream source github.com/shafiqalibhai/ansible-role-java and is preserved here for archival, reference, or continued local development.

At a glance

  • Default branch: master
  • Visibility: public
  • Size: 42 KB
  • Created: 2026-04-27
  • Last updated: 2026-04-27
  • Stars / Forks / Open issues: 0 / 0 / 0

Repository structure

  • defaults/
  • meta/
  • tasks/
  • tests/
  • vars/
  • .travis.yml (989 B)
  • README.md (896 B)

Getting started

Clone the repository:

git clone https://forgejo.deployview.com/ssa/ansible-role-java.git
cd ansible-role-java

Installation

ansible-galaxy install -r requirements.yml
ansible-playbook playbook.yml

Usage

Include this role/collection in a playbook and run with ansible-playbook. See defaults/main.yml (if present) for configurable variables.

Original README

The content below is preserved from the previous README. Headings have been demoted so they don't compete with the new top-level sections.

Ansible Role: Java

Build Status

Installs Java for RedHat/CentOS and Debian/Ubuntu linux servers.

Requirements

None.

Role Variables

Available variables are listed below, along with default values:

java_packages:
  - java-1.7.0-openjdk

Set the version/development kit of Java to install, along with any other necessary Java packages. Some other options include are included in the distribution-specific files in this role's 'defaults' folder.

Dependencies

None.

Example Playbook

- hosts: servers
  roles:
    - { role: geerlingguy.java }

License

MIT / BSD

Author Information

This role was created in 2014 by Jeff Geerling, author of Ansible for DevOps.

Contributing

Contributions are welcome. The typical workflow is:

  1. Open an issue describing the change you'd like to make.
  2. Fork the repository (or create a feature branch if you have write access).
  3. Commit your changes with clear, descriptive messages.
  4. Open a pull request against the master branch.

Please follow the existing code style and include tests or reproduction steps where relevant.

License

No LICENSE file is currently present in this repository. Treat the contents as all rights reserved by the author until an explicit license is added. If you intend to share or accept contributions, consider adding an OSI-approved license such as MIT, Apache-2.0, or GPL-3.0.

Repository

  • Browse: https://forgejo.deployview.com/ssa/ansible-role-java
  • Clone (HTTPS): https://forgejo.deployview.com/ssa/ansible-role-java.git
  • Clone (SSH): ssh://git@forgejo.deployview.com:30143/ssa/ansible-role-java.git
  • Upstream / origin: github.com/shafiqalibhai/ansible-role-java

This README was generated automatically based on repository metadata, contents, and any prior README content. Edit any section above to add project-specific detail.