geerlingguy / Ansible Role Java
Licence: mit
Ansible Role - Java
Stars: ✭ 231
Projects that are alternatives of or similar to Ansible Role Java
Ansible Role Apache
Ansible Role - Apache 2.x.
Stars: ✭ 341 (+47.62%)
Mutual labels: install, ansible, role
Ansible Role Nodejs
Ansible Role - Node.js
Stars: ✭ 322 (+39.39%)
Mutual labels: install, ansible, role
Ansible Role Dotfiles
Ansible Role - Easy and flexible dotfile installation.
Stars: ✭ 133 (-42.42%)
Mutual labels: ansible, role
Ansible Mysql Hardening
This Ansible role provides security configuration for MySQL.
Stars: ✭ 132 (-42.86%)
Mutual labels: ansible, role
Ansible Gitlab Runner
Ansible role to install gitlab-runner
Stars: ✭ 143 (-38.1%)
Mutual labels: ansible, role
Ansible Role Composer
Ansible Role - Composer PHP Dependency Manager
Stars: ✭ 149 (-35.5%)
Mutual labels: ansible, role
Network Engine
This role provides the foundation for building network roles by providing modules and plugins that are common to all Ansible Network roles.
Stars: ✭ 108 (-53.25%)
Mutual labels: ansible, role
Aws Securitygroup Grapher
This ansible role gets information from an AWS VPC and generate a graphical representation of security groups
Stars: ✭ 93 (-59.74%)
Mutual labels: ansible, role
Netboot.xyz
Your favorite operating systems in one place. A network-based bootable operating system installer based on iPXE.
Stars: ✭ 2,753 (+1091.77%)
Mutual labels: install, ansible
Ansible Nginx Hardening
This Ansible role provides secure nginx configurations.
Stars: ✭ 180 (-22.08%)
Mutual labels: ansible, role
Ansible Role Seafile
An ansible role to deploy Seafile, an Open Source Cloud Storage. http://seafile.com/
Stars: ✭ 38 (-83.55%)
Mutual labels: ansible, role
Ansible Role Packer rhel
Ansible Role - Packer RHEL/CentOS Configuration for Vagrant VirtualBox
Stars: ✭ 45 (-80.52%)
Mutual labels: ansible, role
Ansible Role: Java
Installs Java for RedHat/CentOS and Debian/Ubuntu linux servers.
Requirements
None.
Role Variables
Available variables are listed below, along with default values:
# The defaults provided by this role are specific to each distribution.
java_packages:
- java-1.8.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.
java_home: ""
If set, the role will set the global environment variable JAVA_HOME
to this value.
Dependencies
None.
Example Playbook (using default package)
- hosts: servers
roles:
- role: geerlingguy.java
become: yes
Example Playbook (install OpenJDK 8)
For RHEL / CentOS:
- hosts: server
roles:
- role: geerlingguy.java
when: "ansible_os_family == 'RedHat'"
java_packages:
- java-1.8.0-openjdk
For Ubuntu < 16.04:
- hosts: server
tasks:
- name: installing repo for Java 8 in Ubuntu
apt_repository: repo='ppa:openjdk-r/ppa'
- hosts: server
roles:
- role: geerlingguy.java
when: "ansible_os_family == 'Debian'"
java_packages:
- openjdk-8-jdk
License
MIT / BSD
Author Information
This role was created in 2014 by Jeff Geerling, author of Ansible for DevOps.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].