{"repo":"geerlingguy/ansible-role-java","free":true,"listed":false,"github":"https://github.com/geerlingguy/ansible-role-java","clone":"git clone https://github.com/geerlingguy/ansible-role-java.git","description":"Ansible Role - Java","language":"Jinja","stars":326,"topics":["ansible","role","java","languages","install","linux"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"Ansible Role: Java Installs Java for RedHat/CentOS, Amazon, 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 facts.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 facts.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.","default_branch":null,"files":null,"tree":[],"storefront":"/r/geerlingguy","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/geerlingguy/ansible-role-java/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}