Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sansible/java
https://github.com/sansible/java
ansible ansible-role ansible-roles java
Last synced: 12 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/sansible/java
- Owner: sansible
- License: mit
- Created: 2016-02-08T21:39:55.000Z (almost 9 years ago)
- Default Branch: develop
- Last Pushed: 2021-12-07T12:01:16.000Z (almost 3 years ago)
- Last Synced: 2023-08-05T07:51:02.241Z (over 1 year ago)
- Topics: ansible, ansible-role, ansible-roles, java
- Language: Makefile
- Size: 32.2 KB
- Stars: 2
- Watchers: 7
- Forks: 8
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# java
Master: [![Build Status](https://travis-ci.org/sansible/java.svg?branch=master)](https://travis-ci.org/sansible/java)
Develop: [![Build Status](https://travis-ci.org/sansible/java.svg?branch=develop)](https://travis-ci.org/sansible/java)* [ansible.cfg](#ansible-cfg)
* [Installation and Dependencies](#installation-and-dependencies)
* [Tags](#tags)
* [Examples](#examples)This roles installs OpenJDK Java, any version can be installed
but 7 is used by default (which may not be available on all O/S releases).*NOTE:* Only x86_64 is supported.
## Installation and Dependencies
This role has no dependencies and has been tested with Ansible 2.2+.
To install run `ansible-galaxy install sansible.java` or add this to your
`roles.yml````YAML
- name: sansible.java
version: v2.1
```and run `ansible-galaxy install -p ./roles -r roles.yml`
## Tags
This role uses one tag: **build**
* `build` - Installs OpenJDK Java.
## Arguments
Argument | Default | Description
----------|---------|------------sansible_java_apt_key_id | EB9B1D8886F44E2A | Fingerprint of PGP used to verify repo
sansible_java_apt_keyserver | http://eu.pool.sks-keyservers.net | Keyserver to grab PGP key from
sansible_java_apt_repo | See defaults | The repo to grab packages from
sansible_java_set_as_default | yes | Set the installed version as default
sansible_java_version | 8 | The Java version to be installed## Example Playbook
To install OpenJDK Java 7:
```YAML
- name: Install Java
hosts: sandboxroles:
- name: java
```To install OpenJDK Java 8:
```YAML
- name: Install Java
hosts: sandboxroles:
- name: java
java:
version: 8
```