Skip to content

gkfirst8/ansible-sdkman

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Comcast.sdkman

Build Status Apache 2.0 licensed Galaxy Role

An Ansible role that performs the following functions:

  • Install SDKMAN
  • Install/uninstall SDKMAN-managed software candidates
  • Set SDK version defaults
  • Manage the SDKMAN configuration file: /path/to/sdkman/etc/config
  • Flush the SDKMAN caches

Warning: Oracle has made it increasingly difficult to install their JDKs, which has impeded the ability to install them via SDKMAN. Consider using the OpenJDK instead or installing/managing the Oracle JDK by other means.

Requirements

None.

Role Variables

See the defaults for a description of each overrideable variable.

Dependencies

None.

Example Playbook

Here's an example!

- hosts: servers
  roles:
    - role: Comcast.sdkman
      sdkman_dir: /usr/local/sdkman
      sdkman_auto_answer: true
      sdkman_update: true
      sdkman_uninstall_packages:
        - { candidate: groovy, version: 1.8.9 }
      sdkman_install_packages:
        - { candidate: gradle, version: '3.5' }
        - { candidate: gradle, version: 2.14.1 }
        - { candidate: maven, version: 3.5.0 }
        - { candidate: maven, version: 3.3.9 }
      sdkman_defaults:
        gradle: '3.5'
        maven: 3.3.9
      sdkman_flush_caches_before:
        - temp
      sdkman_flush_caches_after:
        - archives
        - broadcast
        - candidates
        - temp

License

Apache 2.0

Author Information

About

An Ansible role that installs, configures, and manages SDKMAN

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%