{"id":19583775,"url":"https://github.com/bodsch/ansible-multi-java","last_synced_at":"2026-04-09T22:47:02.227Z","repository":{"id":87294546,"uuid":"488824530","full_name":"bodsch/ansible-multi-java","owner":"bodsch","description":"Ansible role to install different Java versions.","archived":false,"fork":false,"pushed_at":"2025-03-30T11:19:11.000Z","size":57,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-04T12:39:19.730Z","etag":null,"topics":["ansible","ansible-role","automation","development","java"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bodsch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"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,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-05-05T03:55:42.000Z","updated_at":"2025-03-30T11:19:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"132db3c9-caa3-4a39-8801-51b243553f38","html_url":"https://github.com/bodsch/ansible-multi-java","commit_stats":null,"previous_names":["bodsch/ansible-multi-java"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bodsch/ansible-multi-java","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bodsch%2Fansible-multi-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bodsch%2Fansible-multi-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bodsch%2Fansible-multi-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bodsch%2Fansible-multi-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bodsch","download_url":"https://codeload.github.com/bodsch/ansible-multi-java/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bodsch%2Fansible-multi-java/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271506955,"owners_count":24771822,"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","status":"online","status_checked_at":"2025-08-21T02:00:08.990Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","ansible-role","automation","development","java"],"created_at":"2024-11-11T07:44:45.648Z","updated_at":"2026-04-09T22:46:57.193Z","avatar_url":"https://github.com/bodsch.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Ansible Role:  `java`\n\nAnsible role to install different Java versions.  \nDuring installation, make can choose between *JDK* and *JRE* (When the required archive is available!).\n\n[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/bodsch/ansible-java/main.yml?logo=github\u0026branch=main)][ci]\n[![GitHub issues](https://img.shields.io/github/issues/bodsch/ansible-java)][issues]\n[![GitHub release (latest by date)](https://img.shields.io/github/v/release/bodsch/ansible-java)][releases]\n[![Ansible Downloads](https://img.shields.io/ansible/role/d/bodsch/java?logo=ansible)][galaxy]\n\n[ci]: https://github.com/bodsch/ansible-java/actions\n[issues]: https://github.com/bodsch/ansible-java/issues?q=is%3Aopen+is%3Aissue\n[releases]: https://github.com/bodsch/ansible-java/releases\n[galaxy]: https://galaxy.ansible.com/ui/standalone/roles/bodsch/java/\n\nAll archives are stored on the Ansible controller. These are then copied to the target system and unpacked into the target directory.\n\nThe cache directory can be defined via the environment variable `CUSTOM_LOCAL_TMP_DIRECTORY`. \nBy default it is `${HOME}/.cache/ansible/java`.  \nIf this type of installation is not desired, the download can take place directly on the target system. \nHowever, this must be explicitly activated by setting `java_direct_download` to `true`.\n\n\n## tested operating systems\n\n* ArchLinux\n* Debian based\n    - Debian 10 / 11 /  12\n    - Ubuntu 20.04 / 22.04 / 24.04\n\n## Contribution\n\nPlease read [Contribution](CONTRIBUTING.md)\n\n## Development,  Branches (Git Tags)\n\nThe `master` Branch is my *Working Horse* includes the \"latest, hot shit\" and can be complete broken!\n\nIf you want to use something stable, please use a [Tagged Version](https://github.com/bodsch/ansible-multi-java/tags)!\n\n---\n\n## usage\n\n```yaml\njava_automatic_cleanup: true\n\njava_install_directory: /opt/java\n\njava_versions: []\n\njava_type: \"jdk\"\n\njava_version_map:\n  \"11\": \"OpenJDK11U-jdk_x64_linux_hotspot_11.0.15_10.tar.gz\"\n  \"12\": \"OpenJDK12U-jdk_x64_linux_hotspot_12.0.2_10.tar.gz\"\n  \"13\": \"OpenJDK13U-jdk_x64_linux_hotspot_13.0.2_8.tar.gz\"\n  \"14\": \"OpenJDK14U-jdk_x64_linux_hotspot_14.0.2_12.tar.gz\"\n  \"15\": \"OpenJDK15U-jdk_x64_linux_hotspot_15.0.2_7.tar.gz\"\n  \"16\": \"OpenJDK16U-jdk_x64_linux_hotspot_16.0.2_7.tar.gz\"\n\njava_default_version: \"\"\n  \njava_direct_download: false\n\njava_download:\n  url: https://github.com/adoptium\n```\n\n### Installation of different versions\n\nThe `java_version_map` can be used to control the real version.\n\n`java_versions` is defined as a list and can also contain self-defined versions.\n\n#### Example\n\n```yaml\njava_versions:\n  - \"11\"\n  - \"12\"\n\njava_version_map:\n  \"11\": \"OpenJDK11U-jdk_x64_linux_hotspot_11.0.15_10.tar.gz\"\n  \"12\": \"OpenJDK12U-jdk_x64_linux_hotspot_12.0.2_10.tar.gz\"\n```\n\nBelow the directory `java_install_directory` a new directory is created for each Java version.\n\nThis makes it possible to store several versions of a JDK and to activate them selectively.\n\nIn each of the directories a `profile.sh` file is created which exports the `JAVA_HOME`,\nand extends the `PATH` variables.\n\n**There is no Java version activated by default!**\n\nBut if you want to set a Java version as default, you can define `java_default_version` accordingly.\n\n\n#### Example\n\n| Filename | Major Version | Full Version | Installation path | Comments |\n| :-----     | :-----        | :-----       | :-----         | :--- |\n| `OpenJDK11U-jdk_x64_linux_hotspot_11.0.15_10.tar.gz` | `11` | `11.0.15`   | `/opt/java/jdk-11.0.15`   | |\n| `OpenJDK16U-jdk_x64_linux_hotspot_16.0.2_7.tar.gz`   | `16` | `16.0.2`    | `/opt/java/jdk-16.0.2`    | |\n\n\n---\n\n## Author\n\n- Bodo Schulz\n\n## License\n\n[Apache](LICENSE)\n\n**FREE SOFTWARE, HELL YEAH!**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbodsch%2Fansible-multi-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbodsch%2Fansible-multi-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbodsch%2Fansible-multi-java/lists"}