sansible.java
java
This role installs OpenJDK Java. Although any version can be installed, version 7 is the default, but it may not be available for all operating systems.
NOTE: Only 64-bit (x86_64) systems are supported.
Installation and Dependencies
This role does not have any dependencies and works with Ansible version 2.2 or higher.
To install, run ansible-galaxy install sansible.java
or add the following to your roles.yml
:
- name: sansible.java
version: v2.1
Then 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 | PGP fingerprint to verify the repo |
sansible_java_apt_keyserver | http://eu.pool.sks-keyservers.net | Keyserver to obtain the PGP key |
sansible_java_apt_repo | See defaults | Repository to obtain packages from |
sansible_java_set_as_default | yes | Sets the installed version as default |
sansible_java_version | 8 | The Java version to be installed |
Example Playbook
To install OpenJDK Java 7:
- name: Install Java
hosts: sandbox
roles:
- name: java
To install OpenJDK Java 8:
- name: Install Java
hosts: sandbox
roles:
- name: java
java:
version: 8
Installa
ansible-galaxy install sansible.java
Licenza
mit
Download
40.3k
Proprietario
See https://github.com/sansible/sansible for more information