Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zhan9san.java

Install an OpenJDK GA build from jdk.java.net on Linux, macOS and Windows.

Requirements

  • Ansible 2.4+
  • Windows targets: ansible.windows and community.windows collections

Role Variables

  • jdk_version (default 25.0.2) — one of 17.0.2, 21.0.2, 25.0.2
  • install_jdk_in_user_dir_on_linux (default false) — install under the user's home dir instead of /opt

Add more versions via download_urls in vars/main.yml.

Example Playbook

- name: Install JDK
  hosts: all
  roles:
    - role: zhan9san.java
      vars:
        jdk_version: 25.0.2

Testing

molecule test              # linux
molecule test -s macos
molecule test -s windows

License

MIT

About

Ansible Role - Java

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors