{"id":13654998,"url":"https://github.com/William-Yeh/ansible-oracle-java","last_synced_at":"2025-04-23T10:31:40.874Z","repository":{"id":27118446,"uuid":"30586546","full_name":"William-Yeh/ansible-oracle-java","owner":"William-Yeh","description":"An Ansible role that installs Oracle JDK, in the format for Ansible Galaxy.","archived":false,"fork":false,"pushed_at":"2018-10-31T14:15:29.000Z","size":67,"stargazers_count":170,"open_issues_count":26,"forks_count":133,"subscribers_count":26,"default_branch":"master","last_synced_at":"2024-11-10T06:34:17.745Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://galaxy.ansible.com/williamyeh/oracle-java/","language":"Shell","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/William-Yeh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-10T10:15:12.000Z","updated_at":"2024-05-27T09:04:48.000Z","dependencies_parsed_at":"2022-09-01T00:00:26.408Z","dependency_job_id":null,"html_url":"https://github.com/William-Yeh/ansible-oracle-java","commit_stats":null,"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/William-Yeh%2Fansible-oracle-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/William-Yeh%2Fansible-oracle-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/William-Yeh%2Fansible-oracle-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/William-Yeh%2Fansible-oracle-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/William-Yeh","download_url":"https://codeload.github.com/William-Yeh/ansible-oracle-java/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250416414,"owners_count":21426985,"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":[],"created_at":"2024-08-02T03:00:54.505Z","updated_at":"2025-04-23T10:31:40.598Z","avatar_url":"https://github.com/William-Yeh.png","language":"Shell","funding_links":[],"categories":["Ansible roles"],"sub_categories":["Languages"],"readme":"\nwilliamyeh.oracle-java for Ansible Galaxy\n============\n\n[![Build Status](https://travis-ci.org/William-Yeh/ansible-oracle-java.svg?branch=master)](https://travis-ci.org/William-Yeh/ansible-oracle-java) [![Circle CI](https://circleci.com/gh/William-Yeh/ansible-oracle-java.svg?style=shield)](https://circleci.com/gh/William-Yeh/ansible-oracle-java)\n\n## Summary\n\nRole name in Ansible Galaxy: **[williamyeh.oracle-java](https://galaxy.ansible.com/williamyeh/oracle-java/)**\n\nThis Ansible role has the following features for Oracle JDK:\n\n - Install JDK 7 or 8 version.\n - Install optional Java Cryptography Extensions (JCE)\n - Install for CentOS, Debian/Ubuntu, SUSE, and Mac OS X families.\n\nIf you prefer OpenJDK, try alternatives such as [geerlingguy.java](https://galaxy.ansible.com/geerlingguy/java/) or [smola.java](https://galaxy.ansible.com/smola/java/).\n\n\n## Role Variables\n\n### Mandatory variables\n\nNone.\n\n### Optional variables\n\n\nUser-configurable defaults:\n\n```yaml\n# which version?\njava_version: 8\n\n# which subversion?\njava_subversion: 112\n\n# which directory to put the download file?\njava_download_path: /tmp\n\n# rpm/tar.gz file location:\n#   - true: download from Oracle on-the-fly;\n#   - false: copy from `{{ playbook_dir }}/files` on the control machine.\njava_download_from_oracle: true\n\n# remove temporary downloaded files?\njava_remove_download: true\n\n# set $JAVA_HOME?\njava_set_javahome: false\n\n# install JCE?\njava_install_jce: false\n```\n\nFor other configurable internals, read `tasks/set-role-variables.yml` file; for example, supported `java_version`/`java_subversion` combinations.\n\nIf you want to install a Java release which is not supported out-of-the-box, you have to specify the corresponding Java build number in the variable `java_build` in addition to `java_version` and `java_subversion`, e.g.\n```yaml\n---\n- hosts: all\n\n  roles:\n    - williamyeh.oracle-java\n\n  vars:\n    java_version: 8\n    java_subversion: 91\n    java_build: 14\n```\n\n\n### Customized variables, if absolutely necessary\n\nIf you have a pre-downloaded `jdk_tarball_file` whose filename cannot be inferred successfully by `tasks/set-role-variables.yml`, you may specify it explicitly: \n\n```yaml\n# Specify the pre-fetch filename (without tailing .tar.gz or .rpm or .dmg);\n# used in conjunction with `java_download_from_oracle: false`.\n\njdk_tarball_file\n\n# For example, if you have a `files/jdk-7u79-linux-x64.tar.gz` locally,\n# but the filename cannot be inferred successfully by `tasks/set-role-variables.yml`,\n# you may specify the following variables in your playbook:\n#\n#    java_version:    7\n#    java_subversion: 79\n#    java_download_from_oracle: false\n#    jdk_tarball_file: jdk-7u79-linux-x64\n#\n```\n\n\n## Usage\n\n\n### Step 1: add role\n\nAdd role name `williamyeh.oracle-java` to your playbook file.\n\n\n### Step 2: add variables\n\nSet vars in your playbook file.\n\nSimple example:\n\n```yaml\n---\n# file: simple-playbook.yml\n\n- hosts: all\n\n  roles:\n    - williamyeh.oracle-java\n\n  vars:\n    java_version: 8\n```\n\n\n### (Optionally) pre-fetch .rpm and .tar.gz files\n\nFor some reasons, you may want to pre-fetch .rpm and .tar.gz files *before the execution of this role*, instead of downloading from Oracle on-the-fly.\n\nTo do this, put the file on the `{{ playbook_dir }}/files` directory in advance, and then set the `java_download_from_oracle` variable to `false`:\n\n```yaml\n---\n# file: prefetch-playbook.yml\n\n- hosts: all\n\n  roles:\n    - williamyeh.oracle-java\n\n  vars:\n    java_version: 8\n    java_download_from_oracle: false\n```\n\n\n\n\n\n\n## Dependencies\n\n\n## License\n\nLicensed under the Apache License V2.0. See the [LICENSE file](LICENSE) for details.\n\n\n## History\n\nRewritten from my pre-Galaxy version: [server-config-template](https://github.com/William-Yeh/server-config-template).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FWilliam-Yeh%2Fansible-oracle-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FWilliam-Yeh%2Fansible-oracle-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FWilliam-Yeh%2Fansible-oracle-java/lists"}