{"id":13458455,"url":"https://github.com/geerlingguy/ansible-role-java","last_synced_at":"2025-04-12T19:50:36.461Z","repository":{"id":14590428,"uuid":"17307168","full_name":"geerlingguy/ansible-role-java","owner":"geerlingguy","description":"Ansible Role - Java","archived":false,"fork":false,"pushed_at":"2024-03-19T12:16:44.000Z","size":142,"stargazers_count":300,"open_issues_count":2,"forks_count":451,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-04-10T18:22:40.876Z","etag":null,"topics":["ansible","install","java","languages","linux","role"],"latest_commit_sha":null,"homepage":"https://galaxy.ansible.com/geerlingguy/java/","language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/geerlingguy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null},"funding":{"github":"geerlingguy","patreon":"geerlingguy"}},"created_at":"2014-03-01T03:50:40.000Z","updated_at":"2024-04-24T18:51:04.040Z","dependencies_parsed_at":"2023-02-12T01:46:40.282Z","dependency_job_id":"5f4a9802-0ce8-4bab-bc3b-87a73f35f8dc","html_url":"https://github.com/geerlingguy/ansible-role-java","commit_stats":null,"previous_names":[],"tags_count":44,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geerlingguy%2Fansible-role-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geerlingguy%2Fansible-role-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geerlingguy%2Fansible-role-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geerlingguy%2Fansible-role-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/geerlingguy","download_url":"https://codeload.github.com/geerlingguy/ansible-role-java/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248625501,"owners_count":21135513,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","install","java","languages","linux","role"],"created_at":"2024-07-31T09:00:52.765Z","updated_at":"2025-04-12T19:50:36.433Z","avatar_url":"https://github.com/geerlingguy.png","language":"Jinja","funding_links":["https://github.com/sponsors/geerlingguy","https://patreon.com/geerlingguy"],"categories":["References","role","Ansible roles","Jinja"],"sub_categories":["Do on your Jenkins controller machine","Languages"],"readme":"# Ansible Role: Java\n\n[![CI](https://github.com/geerlingguy/ansible-role-java/actions/workflows/ci.yml/badge.svg)](https://github.com/geerlingguy/ansible-role-java/actions/workflows/ci.yml)\n\nInstalls Java for RedHat/CentOS, Amazon, and Debian/Ubuntu linux servers.\n\n## Requirements\n\nNone.\n\n## Role Variables\n\nAvailable variables are listed below, along with default values:\n\n    # The defaults provided by this role are specific to each distribution.\n    java_packages:\n      - java-1.8.0-openjdk\n\nSet 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.\n\n    java_home: \"\"\n\nIf set, the role will set the global environment variable `JAVA_HOME` to this value.\n\n## Dependencies\n\nNone.\n\n## Example Playbook (using default package)\n\n    - hosts: servers\n      roles:\n        - role: geerlingguy.java\n          become: yes\n\n## Example Playbook (install OpenJDK 8)\n\nFor RHEL / CentOS:\n\n    - hosts: server\n      roles:\n        - role: geerlingguy.java\n          when: \"ansible_os_family == 'RedHat'\"\n          java_packages:\n            - java-1.8.0-openjdk\n\nFor Ubuntu \u003c 16.04:\n\n    - hosts: server\n      tasks:\n        - name: installing repo for Java 8 in Ubuntu\n  \t      apt_repository: repo='ppa:openjdk-r/ppa'\n    \n    - hosts: server\n      roles:\n        - role: geerlingguy.java\n          when: \"ansible_os_family == 'Debian'\"\n          java_packages:\n            - openjdk-8-jdk\n\n## License\n\nMIT / BSD\n\n## Author Information\n\nThis role was created in 2014 by [Jeff Geerling](https://www.jeffgeerling.com/), author of [Ansible for DevOps](https://www.ansiblefordevops.com/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeerlingguy%2Fansible-role-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeerlingguy%2Fansible-role-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeerlingguy%2Fansible-role-java/lists"}